2014-11-01から1ヶ月間の記事一覧

capistranoでデプロイする時migrationを自動でするように設定する

「set :migration_role, 'db'」でmigration_roleにdbと名前を付けて、 rolesにdbを追加する事で自動でマイグレーションをしてくれるようになった [config/deploy.rb] set :migration_role, 'db' [config/deploy/production.rb] server 'servername', user: '…

Devise.secret_key was not set.のエラーの対処

capistranoでデプロイ中に下記のエラーが出ました DEBUG[587de510] config.eager_load is set to nil. Please update your config/environments/*.rb files accordingly: DEBUG[587de510] DEBUG[587de510] * development - set it to false DEBUG[587de510] …

config.eager_load is set to nil.のエラーの対処

サイト移行しました https://blog.kozakana.net/config-eager_load-error/

monitのstart programを特定のユーザーで動かす

monitの設定ファイル/etc/monit.d/sidekiq.confに as uid <ユーザー名> を付けると指定したユーザーで起動する事が出来ました appユーザーでの起動の設定例: check process sidekiq with pidfile "/var/www/app/tmp/pids/sidekiq.pid" start program "/var/…