Skip to content

Commit

Permalink
feat: 🎸 添加服务更新的命令
Browse files Browse the repository at this point in the history
  • Loading branch information
monlor committed Nov 6, 2024
1 parent fd58007 commit 6670517
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ echo "启动服务:$install_path/manage.sh start"
echo "停止服务:$install_path/manage.sh stop"
echo "重启服务:$install_path/manage.sh restart"
echo "加载配置:$install_path/manage.sh reload"
echo "更新服务:$install_path/manage.sh update"
echo "高级用户自定义配置:$install_path/env"
echo "修改env或者compose配置后,需要执行上面的加载配置reload命令生效!"

Expand Down Expand Up @@ -310,8 +311,11 @@ case \$1 in
logs)
$DOCKER_COMPOSE -f "$install_path/docker-compose.yml" logs -f
;;
update)
$DOCKER_COMPOSE -f "$install_path/docker-compose.yml" up --remove-orphans --pull=always -d
;;
*)
echo "Usage: \$0 {start|stop|restart|reload|logs}"
echo "Usage: \$0 {start|stop|restart|reload|logs|update}"
exit 1
;;
esac
Expand Down

0 comments on commit 6670517

Please sign in to comment.