Skip to content

Commit

Permalink
Heroku postdeploy
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-north committed Feb 22, 2018
1 parent 3bce0db commit 1835ad0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: npm start
web: ./scripts/heroku-start.sh
2 changes: 2 additions & 0 deletions scripts/heroku-postdeploy.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env sh
echo "BEGINNING POSTDEPLOY"
psql $DATABASE_URL < northwind.sql -q
npm run db:migrate:pg --- up
echo "FINISHED POSTDEPLOY"
2 changes: 1 addition & 1 deletion scripts/heroku-start.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/usr/bin/env sh
npm start
npm run bounce

0 comments on commit 1835ad0

Please sign in to comment.