All posts tagged in: 'DevOps'

How to use systemd to restart your Rails App at start up

There are many posts out there that talk about deploying your Rails App on any Linux distro and how to get it to start at boot, none of them worked for me, so I thought I would document here what I've tried.

Firstly create a file called <appname>.service in /etc/systemd/system with the following contents: