July 3, 2018
I just installed Thingspeak server on my Ubuntu 14 LTS server and successfully running using these console commands from root:
rails server --binding=xxx.xxx.xxx.xxx --port=80
But when I try to add to rc.local those command, i got this error :
/usr/local/lib/ruby/2.2.0/rubygems/dependency.rb:315:in `to_specs': Could not find 'railties' (>= 0) among 12 total gem(s) (Gem::LoadError)
Checked in 'GEM_PATH=/usr/local/rvm/gems/ruby-2.1.0:/usr/local/rvm/gems/ruby-2.1.0@global', execute `gem env` for more information
from /usr/local/lib/ruby/2.2.0/rubygems/dependency.rb:324:in `to_spec'
from /usr/local/lib/ruby/2.2.0/rubygems/core_ext/kernel_gem.rb:64:in `gem'
from /usr/local/bin/rails:22:in `'
Someone can help me or give an advice?
January 30, 2014
Most likely is something missing/different in the environment variables when running from rc.local
env >> /tmp/env.txt
from rc.local and compare it to the output of env in your terminal
If that doesnt help try the same thing with "gem env"
There is also this link https://askubuntu.com/questions/660523/run-a-ruby-program-on-startup
Most Users Ever Online: 114
Currently Online: James181
Currently Browsing this Page:
Guest Posters: 1
Newest Members:James181, kimberlypg2, JamesAdorb, waynesmith, paulettebw60, ashleytb4
Administrators: Hans: 387, lee: 457