Skip to content

Commit 246f359

Browse files
committed
app.jsonにscriptsで実行したい初期コマンドを追加
#369 の際に、review appsの作成時にアクセスできない状況が発生した。 review appsでアプリを作成した際に、DBの初期設定を行っていなかったのが原因と思うので app.jsonに初期設定のコマンドを追加した cf. https://devcenter.heroku.com/articles/app-json-schema#scripts
1 parent 5ef40ff commit 246f359

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
},
7979
"name": "coderdojo.jp",
8080
"scripts": {
81+
"postdeploy": "bundle exec rails db:setup && bundle exec rails dojos:update_db_by_yaml && bundle exec rails dojo_event_services:upsert"
8182
},
8283
"stack": "heroku-18"
8384
}

0 commit comments

Comments
 (0)