Skip to content

Commit

Permalink
chore: allow fresh migrations on entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
limwa committed Jan 22, 2025
1 parent c1d5450 commit 530e57a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 8 additions & 2 deletions deploy/website/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion website/app/controllers/authentication_controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export default class AuthenticationController {

throw error
}

}

async logout({ auth, response }: HttpContext) {
Expand Down

0 comments on commit 530e57a

Please sign in to comment.