Rails engine adding Rake tasks to package a Rails application into a Debian package. Once installed, the Debian package configures the Rails application to be run as a system service.
Add this into your Gemfile:
gem 'ti_rails_debian'
Run this to package into a Debian package:
rake ti_rails_debian:package
Install your Debian package using standard Debian tooling:
apt install my_package
or
dpkg -i /path/to/my_package.deb
Once installed, run your Rails application as a service:
service my_rails_app start