Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 🎸 添加服务更新的命令 #273

Merged
merged 1 commit into from
Nov 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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