Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Commit

Permalink
Adds release command to auto migrate db (#457)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanatorn authored Nov 22, 2021
1 parent 3f834c2 commit 42bf25b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
web: bin/rails server -p $PORT -e $RAILS_ENV
worker: bundle exec sidekiq
release: bin/release-tasks
7 changes: 7 additions & 0 deletions bin/release-tasks
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

if [ "$DISABLE_RAILS_DB_MIGRATIONS" = "true" ]; then
echo "SKIPPING DATABASE MIGRATIONS"
else
bundle exec rake db:migrate
fi

0 comments on commit 42bf25b

Please sign in to comment.