Skip to content

Commit

Permalink
only load fixtures in dev environment
Browse files Browse the repository at this point in the history
  • Loading branch information
gpelouze committed Sep 14, 2023
1 parent b71f1cf commit 3e8b561
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ docker_build(
context='.',
dockerfile='tilt/vreapis/Dockerfile',
only=['./vreapis/'],
entrypoint="/app/entrypoint.dev.sh",
live_update=[
sync('./vreapis', '/app'),
run('cd /app && /opt/venv/bin/python manage.py makemigrations'),
Expand Down
1 change: 0 additions & 1 deletion vreapis/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ cd /app/
/opt/venv/bin/python manage.py wait_for_database
/opt/venv/bin/python manage.py makemigrations
/opt/venv/bin/python manage.py migrate
/opt/venv/bin/python manage.py loaddata virtual_labs
/opt/venv/bin/python manage.py createsuperuser --no-input
/opt/venv/bin/python manage.py create_custom_token ${DJANGO_USERNAME} --password ${DJANGO_PASSWORD} --token ${DJANGO_TOKEN}
/opt/venv/bin/gunicorn --worker-tmp-dir /dev/shm vreapis.wsgi:application --bind "0.0.0.0:${APP_PORT}"

0 comments on commit 3e8b561

Please sign in to comment.