Ruby on Rails Friday, February 28, 2014

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 <frederick.cheung@gmail.com> 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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CANPOtXtOy4bUPTBpgjjJb8t_fd6A1JW%3D_LP9W56A7cdOg_vtRQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment