Rails
mysql2 gem 経由で MySQL サーバに接続しようとすると、ライブラリ /usr/local/lib/libmysqlclient.18.dylibがロードされず、LoadErrorが発生しました。 /Users/username/reposname/vendor/bundle/ruby/2.3.0/gems/mysql2-0.4.3/lib/mysql2.rb:31:in `requir…
deploy 中に下記のようなエラーが発生した. The deploy has failed with an error: Exception while executing as foo-bar-user@{MY_IP_ADDR}: git exit status: 2 git stdout: fatal: Not a valid object name tar: This does not look like a tar archive …
Creates an object (or multiple objects) and saves it to the database, if validations pass. The resulting object is returned whether the object was saved successfully to the database or not. http://api.rubyonrails.org/classes/ActiveRecord/P…
unicorn コマンドと unicorn_rails コマンドの違いは -E オプションで渡すものが RACK_ENV になるのか、RAILS_ENV になるのかがメインのよう。 でも ActiveAdmin を使うときなどは unicorn_rails じゃなかったりするようだし、Rails アプリケーションの場合…