From the following line:
No such file or directory - /home/ec2-user/apps/app_dev/current/config/unicorn/.rb
I gather that unicorn is looking for /home/ec2-user/apps/app_dev/current/config/unicorn/<something should be here>.rb
. This "something should be here", I expect is 'development' which I guess it is trying to take from fetch(:stage)
.
Try adding to development.rb
set :stage, :development
Edit
I did not notice the circularity of the logic of what I suggested (add something to the file that was not found to show where it is...) - you should add this line to config/deploy/development.rb
, not to config/unicorn/development.rb
... :-P
Update
Since that did not work, I've dug a bit in capistrano3/unicorn
code, and found that the environment variable it is looking for is :rails_env
, so also add
set :rails_env, :development