This commit is contained in:
Egor Matveev 2021-11-05 19:48:45 +03:00
parent 087d3acd63
commit a909a8a068
2 changed files with 6 additions and 4 deletions

View File

@ -1,6 +1,6 @@
stages:
- build
- deploy
- deploy-dev
before_script:
- echo "Starting..."
@ -16,9 +16,11 @@ build:
script:
- docker build -t sprint .
deploy:
stage: deploy
deploy-dev:
stage: deploy-dev
tags:
- main
variables:
PORT: 80
script:
- docker-compose up -d

View File

@ -1,3 +1,3 @@
python manage.py migrate
python manage.py update_languages
python manage.py runserver 0.0.0.0:8000
python manage.py runserver 0.0.0.0:$PORT