Rails Unicorn init script not executing. Says Ruby can't be found -
having trouble getting unicorn run service. when call "sudo service unicorn restart", error below.
if call '/var/www/mysite/bin/unicorn -d -c /var/www/mysite/config/unicorn.rb -e production' app's root directory, runs fine. , can call "sudo service unicorn restart" after fine.
any appreciated!
ubuntu@ip:$ sudo service unicorn restart couldn't reload, starting '/var/www/mysite/bin/unicorn -d -c /var/www/mysite/config/unicorn.rb -e production' instead /usr/bin/env: ruby: no such file or directory here's terminal output show ruby system using.
ubuntu@ip:$ ruby /home/ubuntu/.rbenv/shims/ruby i'm running on ubuntu 12.04. rails 4, ruby 2.1 , nginx
your problem rbenv installation loaded ubuntu user, you're running unicorn root.
you might want install rbenv root user, or install globally.
Comments
Post a Comment