Skip to content

Commit

Permalink
test path
Browse files Browse the repository at this point in the history
  • Loading branch information
KonstantinRaikhert committed Sep 10, 2024
1 parent c1a1143 commit 36ee633
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/stage_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ jobs:
sleep 10
cd infra/stage
docker-compose -f docker-compose.stage.yaml exec goodstart-bot sh -c "export RUN_BOT=false"
docker-compose -f docker-compose.stage.yaml exec goodstart-bot python manage.py collectstatic --noinput
docker-compose -f docker-compose.stage.yaml exec goodstart-bot cd .. && cd static/material/admin/css/ && sed -i 's/readonly-label{width:170px;height:10px}/readonly-label{width:170px;height:auto}/' change_form.min.css
Expand Down
8 changes: 4 additions & 4 deletions infra/stage/goodstart_bot.service
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ RestartSec=5
TimeOutStartSec=1200
User=dev

WorkingDirectory=/home/develop/Goodstart_telegram_bot/infra/stage/
WorkingDirectory=/home/dev/Goodstart_telegram_bot/infra/stage/

# Выполняет pull образов с Docker Hub
ExecStartPre=docker compose -f docker-compose.stage.yaml pull
ExecStartPre=docker-compose -f docker-compose.stage.yaml pull

# Перезапускает все контейнеры в Docker Compose
ExecStartPre=docker compose -f docker-compose.stage.yaml down
ExecStart=docker compose -f docker-compose.stage.yaml up -d
ExecStartPre=docker-compose -f docker-compose.stage.yaml down
ExecStart=docker-compose -f docker-compose.stage.yaml up -d

# Выполняет удаление старых образов
ExecStartPost=docker system prune --force
Expand Down

0 comments on commit 36ee633

Please sign in to comment.