生产部署
# 生产部署
# 初始化
- 从bin目录取出devinggo
cp devinggo /opt/devinggo/devinggo
- 初始化
cd /opt/devinggo/
sudo chmod 0777 devinggo
./devinggo unpack
# 打开config.yaml,配置mysql,redis,以及其他配置
./devinggo migrate:up
# 使用systemclt
#到代码根目录复制docs/devinggo.service 到 /opt/devinggo/,转到/opt/devinggo/目录
cp devinggo.service /usr/lib/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable devinggo
sudo systemctl start devinggo
# 使用 Supervisor
#到代码根目录复制docs/devinggo.conf 到 /opt/devinggo/,转到/opt/devinggo/目录
cp devinggo.conf /etc/supervisor/conf.d/
supervisorctl reload
上次更新: 2025/01/16, 16:33:52