How to get systemd to restart Rails App with Puma

后端 未结 2 1754
闹比i
闹比i 2021-02-08 00:20

I\'ve been struggling with this a week now and really can\'t seem to find an answer. I\'ve deployed my Rails App with Capistrano. I use Puma as a server.

When I deploy,

2条回答
  •  闹比i
    闹比i (楼主)
    2021-02-08 00:43

    Have you looked into Foreman ? Foreman makes it easy to start and stop your application if it has multiple processes. Incidentally it also provides an export function that can generate some systemd or upstart scripts for you to (re)start and stop your application.

    As you are already using capistrano you can use capistrano-foreman to integrate all this nicely with capistrano.

    I hope you find some use in these resources

提交回复
热议问题