运维配置

This commit is contained in:
王思川 2021-12-01 01:40:13 +08:00
parent 381b8857ec
commit b162b832e5
2 changed files with 3 additions and 3 deletions

View File

@ -4,8 +4,8 @@ stages:
job:
stage: deploy
script:
# - docker stop tfse_app_api
# - docker rm tfse_app_api
- docker stop tfse_app_api
- docker rm tfse_app_api
- docker build -t tfse_app_api .
- docker run -d -p 51020:51020 --name tfse_app_api -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro tfse_app_api
only:

View File

@ -1,3 +1,3 @@
# 应用配置
APP_NAME = 'tfse_app_api'
APP_PORT = 51020
APP_PORT = '51020'