Make it easy to install and run your rails app as linux service.
Supported platforms:
- systemd (Ubuntu)
-
Copy the files inside of
lib/tasks/*
into the folderlib/tasks
of your rails project. -
Then apply your custom settings in its
rails_service_tasks_config.yml
. -
After that include (copy) the dependencies of
Gemfile
within theGemfile
of your rails project. (colorize)
That's it! Integration in your rails app is done!
You can install your rails app as service, so it will be restarted automatically after reboot.
Otherwise you will have to restart your app manually after reboot.
Run as root (prefix the command with rvmsudo
instead of sudo
if using rvm)
rake install_service
rake start # start server"
rake stop # stop server"
rake restart # run stop and start"
rake status # check if server is running"
rake install_service # install as systemd service"
rake uninstall_service # uninstall as systemd service"
rake reinstall_service # uninstall and install as systemd service"