Skip to content

Restarting Rails Apps #27

@lcreid

Description

@lcreid

The current way of restarting a Rails app requires sudo privileges because we start with systemd. And we start with systemd because we want the site to be available automatically on start-up.

We could simply try to restart with the tmp/restart.txt approach. The net seems to say that works for Puma.

There is an interesting way you can start services on demand ("socket activation"), which covers the automatic start issue. Maybe that can be combined with a service that runs under a user's permission, to make it so restarting with systemctl can be done by the deploy user.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions