- Ruby in Production: Lessons Learned https://medium.com/@rdsubhas/ruby-in-production-lessons-learned-36d7ab726d99
-
Install foreman gem to manage processes
web: rails server
-
Type following command
$ sudo foreman export --app app_name --user prashant upstart /etc/init $ ls /etc/init/app_name* $ ls /var/log/app_name/In this way out app is on par with a core system service. We don’t have to dabble with PID files, system handles that. The OS will automatically reboot service if it crashes, rotate logs.
More info: http://stackoverflow.com/questions/12990842/how-to-use-foreman-to-export-to-upstart