优化部署脚本
continuous-integration/drone/push Build is failing Details

main
franktrue 3 years ago
parent 4deb611a61
commit d9a3a72120

@ -18,7 +18,7 @@ steps:
hosts: # 多个ip使用,隔开 hosts: # 多个ip使用,隔开
from_secret: ssh_host from_secret: ssh_host
# 来源目录 # 来源目录
source: deplpy/ source: /deplpy/
# 目标服务器目录 # 目标服务器目录
target: /mnt/data/wwwroot/api2gpt/mid target: /mnt/data/wwwroot/api2gpt/mid
script: script:

@ -7,7 +7,7 @@ RUN apk update && apk add --no-cache bash supervisor
RUN adduser -S -D -H -h /app -s /sbin/nologin -u 1000 app RUN adduser -S -D -H -h /app -s /sbin/nologin -u 1000 app
RUN chown -R app /app RUN chown -R app /app
ADD api2gpt-mid /app/server ADD api2gpt-mid /app/server/
ADD work.ini /etc/supervisor.d/ ADD work.ini /etc/supervisor.d/
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"] CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
Loading…
Cancel
Save