I’m trying to make a script to run my Rails dev server, but the absolute path doesn’t want to work.
This is what I’ve got;
/home/me/dev/app/script/rails server >> /var/log/rails.output.log
It just throws an error saying,
“configuration /home/me/config.ru not found”
It appears that Rails is using the current working directory to get it’s paths, rather than the script location.
Is there a way to force the app path?
Try:
cd /home/me/dev/app && script/rails server >> /var/log/rails.output.log