ruby on rails - Capistrano Depolyment failure : /etc/init.d/unicorn: line 42: rvm-shell command not found -


I am stationed on the server using Unicorn, and Callistino in the rail .... < / P>

But in the last phase of deployment, Capistrano exists with this error:

  INFO [47010f4f] is running / usr / bin / env service on unicorn_app restart xyzdomain.com DEBUG [47010f4f] Order: Service Unicorn_app restart DEBUG [47010f4f] Reload T, 'CD / var / www / app / current; RVM-Shell 'Default' -C 'Bundle Exec Unicon - D -c /var/www/app/shared/config/unicorn.rb-E Staging' Instead Debug [47010f4f] DEBUG [47010f4f] / ATC / Int. / Unicorn_app: Line 42: RVM-Shell: Order Not Found DEBUG [47010f4f] Cap Canceled!   

When I run the rvm-shell command from the terminal on the server, it runs without any errors.

Note: rvm-shell is installed ~ / .rvm / bin

" The solution to this problem:

This was actually some permissions issue on the server.

When I execute the command , which was failing directly on the server, it produced some directory permission errors I manually created those directories Made them solve and solve them.

, which wasted time due to a lot of confusion and debugging.

I hope my answer will help other people that they get the same error and save a lot of their time :)

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -