Last active
June 10, 2021 13:19
-
-
Save damonvjanis/3c036fe38dd07c9130dc6bebea88b0b6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=My App | |
After=network.target | |
StartLimitIntervalSec=0 | |
[Service] | |
Type=simple | |
Restart=always | |
RestartSec=1 | |
User=<YOUR_USERNAME> | |
EnvironmentFile=/home/<YOUR_USERNAME>/env_vars | |
ExecStart=/bin/bash -c '/home/<YOUR_USERNAME>/releases/${RELEASE}/bin/my_app start' | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment