Skip to content
Tanaka Daiki edited this page Oct 30, 2018 · 6 revisions

Welcome to the whole_issue wiki!

Tips

bundle installしてもサーバが立ち上がらない時

$ sudo apt-get install libpq-dev  
$ gem install pg -v '0.18.4' --source 'https://rubygems.org/'
$ bundle install
$ rails s

で解決しました。


全ユーザーへの通知作成方法

  1. lib/tasks/message.txt を作成し、本文を書く
  2. rails runner lib/tasks/notice_sender.rb を実行する

本番環境でレイアウト崩れが起きた場合

開発環境で発生しなかったレイアウト崩れが、本番環境において発生した。

解決策 RAILS_ENV=production bundle exec rake assets:precompile を忘れていた。

cssが反映しないっぽい。

Clone this wiki locally