Skip to content
This repository was archived by the owner on Mar 27, 2023. It is now read-only.

Commit daace29

Browse files
committed
added conditional check to asgi start script
1 parent 39d484d commit daace29

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,7 @@ Build Documentation:
125125
- python backend/manage.py migrate
126126
- python backend/manage.py create_default_user
127127
- cp /static/index.html backend/templates/
128-
- pwd
129-
- ls
130-
- cd backend && /start_asgi.sh &
131-
- pwd
132-
- ls
128+
- /start_asgi.sh &
133129
script:
134130
- npm install cypress
135131
- cp cypress.json backend/

backend/scripts/dev/start_asgi.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,8 @@
1212
# sleep 2
1313
# done
1414

15+
# cd backend
16+
17+
if $CI_PIPELINE_TRIGGERED ; then cd backend ; fi
18+
1519
daphne backend.asgi:application --bind 0.0.0.0 --port 9000

0 commit comments

Comments
 (0)