diff --git a/deploy/website/entrypoint.sh b/deploy/website/entrypoint.sh index 2c8b377..e448295 100755 --- a/deploy/website/entrypoint.sh +++ b/deploy/website/entrypoint.sh @@ -124,12 +124,18 @@ pop_indent print ">> Application preparation" push_indent " " +migrate_database() { + +} + if [ "$ON_STARTUP_MIGRATE" = "true" ]; then - print ">> ON_STARTUP_MIGRATE is enabled" + mode="${ON_STARTUP_MIGRATE_MODE:-run}" + + print ">> ON_STARTUP_MIGRATE is enabled [mode: $mode]" push_indent " " print "Migrating database..." - run_command node ace migration:run --force + run_command node ace migration:$mode --force pop_indent fi diff --git a/website/app/controllers/authentication_controller.ts b/website/app/controllers/authentication_controller.ts index c5ffd60..ea8cfd0 100644 --- a/website/app/controllers/authentication_controller.ts +++ b/website/app/controllers/authentication_controller.ts @@ -34,7 +34,6 @@ export default class AuthenticationController { throw error } - } async logout({ auth, response }: HttpContext) {