Skip to content

Commit

Permalink
load environment variable before running db migration (techschool#20)
Browse files Browse the repository at this point in the history
Co-authored-by: phamlequang <phamlequang@gmail.com>
  • Loading branch information
techschool and phamlequang authored Jun 19, 2021
1 parent 5750a6e commit 059c54e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
set -e

echo "run db migration"
source /app/app.env
/app/migrate -path /app/migration -database "$DB_SOURCE" -verbose up

echo "start the app"
Expand Down

0 comments on commit 059c54e

Please sign in to comment.