Skip to content

app.jsonのdb関連の設定変更 #446

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 15, 2019
Merged

Conversation

AnaTofuZ
Copy link
Member

@AnaTofuZ AnaTofuZ commented May 14, 2019

背景

#409 などでも作業をしているが、Herokuのrevie appをこちらでも使いたいが、エラーが出ている
app.jsonに問題がある可能性があるため、app.jsonの不安要素を排除したい

行ったこと

  • postdepploy時にDBの権限でエラーが発生している事を確認した

  • DBの権限がpostdeploy時に無い為に、公式ドキュメントを参照し修正した

For Rails apps you should look to use db:schema:load, db:structure:load or db:migrate instead of db:setup.
cf. https://help.heroku.com/63D7ALXT/why-am-i-seeing-user-does-not-have-connect-privilege-error-with-heroku-postgres-on-review-apps

  • この後にseedがうまく設定されていなかったので、 rails db:seed を追加した

DBの権限がpostdeploy時に無い為に修正した
> For Rails apps you should look to use db:schema:load, db:structure:load or db:migrate instead of db:setup.
cf. https://help.heroku.com/63D7ALXT/why-am-i-seeing-user-does-not-have-connect-privilege-error-with-heroku-postgres-on-review-apps
@yasulab yasulab temporarily deployed to coderdojo-japan-pr-446 May 14, 2019 12:29 Inactive
seedにあったデータが
db:schema:loadではロードされない事がわかった為、追加した
@AnaTofuZ AnaTofuZ changed the title app.jsonのdb:setupをdb:schema:loadに変更 app.jsonのdb関連の設定変更 May 15, 2019
@AnaTofuZ AnaTofuZ merged commit 4f5cddc into master May 15, 2019
@AnaTofuZ AnaTofuZ deleted the rm_db-setup_at_app.json branch May 15, 2019 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants