部署基于 Kamal 实现,Kamal 能够实现从裸机 0 配置快速上线。
git pullgit submodule update --rebasebundle installnpm installbin/kamal deploybin/kamal deploy -c config/deploy_other.ymlbin/kamal proxy boot_config set --http_port 8080 --https_port 4431bin/kamal proxy boot_config set --registry ccr.ccs.tencentyun.com --repository kamal --image_version v0.9.1docker run --detach --restart unless-stopped --env RAILS_ENV="production" --env RAILS_MAX_THREADS="20" --log-opt max-size="10m" --volume ~/app/acme:/rails/acme --volume ~/app/storage:/rails/storage --publish 3000:3000