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:packageInstall your Debian package using standard Debian tooling:
apt install my_packageor
dpkg -i /path/to/my_package.debOnce installed, run your Rails application as a service:
service my_rails_app start