Skip to content

Commit

Permalink
Wrap postdeploy Commands in a File
Browse files Browse the repository at this point in the history
  • Loading branch information
joel committed Feb 10, 2024
1 parent b331867 commit 3075a2f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"scripts": {
"dokku": {
"predeploy": "echo 'predeploy script'",
"postdeploy": "./bin/rails db:prepare && ./bin/rails db:schema:cache:dump"
"postdeploy": "bash ./bin/dokku/postdeploy.sh"
},
"postdeploy": "echo 'postdeploy script'"
}
Expand Down
4 changes: 4 additions & 0 deletions bin/dokku/postdeploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

./bin/rails db:prepare
./bin/rails db:schema:cache:dump

0 comments on commit 3075a2f

Please sign in to comment.