LoginSignup
2
4

More than 3 years have passed since last update.

【Rails】 Heroku, AWS で詰まったときに見る記事まとめ

Last updated at Posted at 2020-01-23

Heroku

db

heroku上のDBをリセットする

heroku pg:reset DATABASE_URL
heroku run rake db:migrate
or
heroku run rake db:seed

【Rails】Heroku上でApplication Error(H10 App crashed)【PostgreSQL】

group :production do
  gem 'pg', '0.20.0'
end
メモ

heroku run rails cでheroku上のdbの中身を確認できる。
heroku run rails db:migrate:statusでdbの状態を見れる。
heroku pg:psql -c "select * from posts;"でも同様のことができる
heroku logs -tで詳しいエラー内容を見れる。

assets

Rails4 asset pipeline関連設定まとめ(Heroku対応込)

RAILS_ENV=production bundle exec rake assets:precompile assets:clean

git add .

git commit -m "hoge"

git push origin hoge

git push heroku

【rails】【heroku】【bootstrap】herokuでCSS、font、JavaScriptが反映されない。

credentials.yml.enc, master.key

【Rails5.2】credentials.yml.encとmaster.keyでのデプロイによる今までとの変更点

EDITOR=vim bin/rails credentials:edit

railsのエラー「Errno::EACCES: Permission denied」の解決

production環境でsecret_tokenをセットする(rails)

AWS

【Railsチュートリアル】S3に画像をアップロードする設定【13章課題】

Rails+carrierwave+heroku+AWS S3で画像アップロードさせるときにハマったこと

2
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
4