Skip to content

Commit

Permalink
Uncommented docker-entrypoint users_user
Browse files Browse the repository at this point in the history
  • Loading branch information
remyvdwereld committed Jul 1, 2024
1 parent 38ce73c commit b2e16fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/deploy/docker-entrypoint.development.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ python manage.py collectstatic --no-input
chmod -R 777 /static

# echo Clear tables
# python manage.py shell -c "from django.db import connection; cursor = connection.cursor(); cursor.execute('drop table if exists "django_migrations" cascade; drop table if exists "django_content_type" cascade; drop table if exists "auth_permission" cascade; drop table if exists "auth_group" cascade; drop table if exists "auth_group_permissions" cascade; drop table if exists "users_user" cascade; drop table if exists "users_user_groups" cascade; drop table if exists "users_user_user_permissions" cascade; drop table if exists "django_admin_log" cascade; drop table if exists "django_session" cascade;'); cursor.close();"
python manage.py shell -c "from django.db import connection; cursor = connection.cursor(); cursor.execute('drop table if exists "django_migrations" cascade; drop table if exists "django_content_type" cascade; drop table if exists "auth_permission" cascade; drop table if exists "auth_group" cascade; drop table if exists "auth_group_permissions" cascade; drop table if exists "users_user" cascade; drop table if exists "users_user_groups" cascade; drop table if exists "users_user_user_permissions" cascade; drop table if exists "django_admin_log" cascade; drop table if exists "django_session" cascade;'); cursor.close();"

echo Apply migrations
python manage.py migrate --noinput
Expand Down

0 comments on commit b2e16fb

Please sign in to comment.