コードビート

プログラミングのメモ




Ruby on Rails

Rails4への移行時に出る、 DEPRECATION WARNING: config.whiny_nils option is deprecated and no longer works.

Rails3からRails4へ移行しようとするも、表題のエラーが出てプリコンパイルが通らない。 config/environments/development.rbの下記の行をコメントアウトする。 # Log error messages when you accidentally call methods on nil config.whiny_nils = true …

.make-grid-columns is undefined というBootswatch絡みのエラー

bundle updateした後、 loader.css.less にて宣言されてませんよというエラーが出る。 .make-grid-columns is undefined bootswatchのバージョンが上がってしまったことが原因。 Gemfileで相応しいバージョンを指定する。 gem 'twitter-bootswatch-rails', '…

bundle install時の "You may need to add a javascript runtime"

bundle install時に出るエラー、というか忠告。 Post-install message from twitter-bootswatch-rails: Important: You may need to add a javascript runtime to your Gemfile in order for bootstrap's LESS files to compile to CSS. *******************…

開発ブランチをherokuにpushする

開発ブランチはそのままgit push heroku masterできない。 ローカルのmasterブランチに開発ブランチをマージしてpushするか、もしくは下記のコマンドを利用する。 git push heroku your_branch_name:master 参考: Can't specify Ruby 1.9.3 on Heroku cedar…

herokuアップロードの際にtwitter-bootswatch-railsがインストールされない

git push heroku master しても twitter-bootswatch-railsがインストールされないというエラーが出る。 heroku run gem install twitter-bootswatch-rails で解決。