Oh sorry... only now I figured out that I was answering on a rails group... so it could be about a rails app that you need to start with init.d
In that case... you can also use a script.. but it is a more complicated one... As recommended above, it's better use passenger or unicorn... On Fri, Feb 28, 2014 at 11:28 AM, Carlos Figueiredo < [email protected]> wrote: > I can not figure out why it can not be done... if you put a symbolic link > for your ruby binary, you just need to do something like > > /etc/init.d/start_fancy_ruby_script.sh > > # /bin/ruby > # > puts "Your fancy script works" > > > > > On Fri, Feb 28, 2014 at 8:31 AM, Frederick Cheung < > [email protected]> wrote: > >> On Friday, February 28, 2014 4:33:05 AM UTC, Jay Amorin wrote: >> >>> I just want that every time i restart my server, rails would also be up >>> and running. No need for me to login and cd to your rails apps and then >>> type rails server. >>> >>> I already did those cool stuff, nginx proxy on the frontend, rails on >>> the backend. >>> >>> The thing is my current rails don't comes with a startup/init script. I >>> hope that someone already did that and would like to share. >>> >>> >> Typically people don't use `rails server` in production, which is >> probably why you haven't found any examples of that. You're more likely to >> use something like unicorn, puma, passenger (either the standalone version >> or the nginx/apache module version) and you shouldn't have trouble finding >> startup scripts for those. >> >> Fred >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/rubyonrails-talk/ec88b452-4420-4881-be9b-31b02d1463d7%40googlegroups.com >> . >> >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CANPOtXsaQon4Cx6oC03frQdNu%2B930E7eNgNM%2B8yXKoiXmLA9jg%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.

