Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unicorn not starting when using mina #272

Closed
ghost opened this issue Feb 12, 2015 · 4 comments
Closed

Unicorn not starting when using mina #272

ghost opened this issue Feb 12, 2015 · 4 comments

Comments

@ghost
Copy link

ghost commented Feb 12, 2015

When I run mina unicorn:start, I get an error: /home/deployer/xxx-api/releases/7 not found . I am certain that directory exists on the server. Can you kindly take a look to know if it is a problem with mina or mina-unicorn.

Navaratans-Mac-mini:xxx-api navtech$ RAILS_ENV=production mina unicorn:start --verbose
-----> Loading environment
$ source ~/.bashrc
-----> Loading rbenv
$ export RBENV_ROOT="$HOME/.rbenv"
$ export PATH="$HOME/.rbenv/bin:$PATH"
$ eval "$(rbenv init -)"
-----> Starting Unicorn...
/home/deployer/xxx-api/releases/7 not found
Connection to 104.131.92.185 closed.

 !     Command failed.
       Failed with status 2560
@kot-begemot
Copy link

Facing exactly same issue

$ mina unicorn:start
-----> Loading environment
-----> Loading rbenv
-----> Starting Unicorn...
/home/project/www/releases/2 not found
Connection to xxx.xxx.xxx.xxx closed.

 !     Command failed.
       Failed with status 2560

@kot-begemot
Copy link

Ok, i figured it. Mina-unicorn relies on bundle_config variable

https://github.com/openteam/mina-unicorn/blob/master/lib/mina/unicorn/utility.rb#L78

It is not defined neither in mina, nor in mina-unicorn.
Add a line set :bundle_gemfile, "#{deploy_to}/#{current_path}/Gemfile" to your deploy file, and it will be working.

@ghost
Copy link
Author

ghost commented Feb 23, 2015

fixed the issue

by modifying config/deploy.rb
from

set :unicorn_pid, "#{deploy_to}/shared/pids/unicorn.pid"

to

set :unicorn_pid, "/home/deployer/pids/unicorn.pid"

@d4be4st
Copy link
Member

d4be4st commented Mar 1, 2015

Mina does not have unicorn support out of the box.
I think you need to post this to https://github.com/scarfacedeb/mina-unicorn

@d4be4st d4be4st closed this as completed Mar 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants