Ruby-on-rails – Start the Rails server with absolute path

I am trying to make a script to run my Rails development server, but the absolute path does not want to work.

This is what I have;

p>

/home/me/dev/app/script/rails server>> /var/log/rails.output.log

It just throws an error saying,

< p>

“configuration /home/me/config.ru not found”

It seems that Rails uses the current working directory to get its path instead of Script location.

Is there a way to force the application path?

try:

cd / home / me / dev / app&& script / rails server>> /var/log/rails.output.log

I am trying to make a script to run my Rails development server, but the absolute path does not want Works.

This is what I have;

/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 seems that Rails uses the current working directory to get its path, not the script location.

Is there a way to force the application path?

Try:

cd / home / me / dev / app&& script / rails server>> /var/log/ rails.output.log

Leave a Comment

Your email address will not be published.