RailsCasts Pro episodes are now free!

Learn more or hide this

Juan Garcia's Profile

GitHub User: juancgi

Comments by Juan Garcia

Avatar

did you have to restart nginx or the app?

Avatar

nevermind im about to throw my pc out the window
had to use dos2unix on the unicorn_init.sh in order to get it to insterpret it righ

thanks!

Avatar

for some reason, at the last step on cap deploy:cold it is not allowing me access. this is the output:

console
  * executing `deploy:start'
  * executing "/etc/init.d/unicorn_mock_app start"
    servers: ["MYIP"]
    [MYIP] executing command
 ** [out :: MYIP] sh: /etc/init.d/unicorn_mock_app: Permission denied
    command finished in 150ms
failed: "sh -c '/etc/init.d/unicorn_mock_app start'" on IP

I tried changing the permission to the symlink by running:

console
chmod +x /etc/init.d/unicorn_mock_app

But then it outputs

console
-bash: /etc/init.d/unicorn_mock_app: /bin/sh^M: bad interpreter: No such file or directory

any ideas?? on why it wont allow permissions for the app to start