Last active
October 30, 2018 19:16
-
-
Save kzkin/fbc992fb1f864de1b907 to your computer and use it in GitHub Desktop.
systemd service for phoenix framework release (exrm)
This file contains hidden or 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
# Phoenix Framework - A productive web framework that does not compromise speed and maintainability | |
[Unit] | |
Description=Phoenix Framework ISControl Application | |
After=network.target | |
[Service] | |
Type=simple | |
User=deployer | |
RemainAfterExit=yes | |
# Environment=MIX_ENV=prod PORT=4000 | |
WorkingDirectory=/srv/apps/iscontrol/ | |
ExecStart=/srv/apps/iscontrol/bin/iscontrol start | |
ExecStop=/srv/apps/iscontrol/bin/iscontrol stop | |
Restart=on-failure | |
TimeoutSec=300 | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
place phoenix-iscontrol-app.service to /lib/systemd/system
$ systemctl enable phoenix-iscontrol-app.service
$ chown -R deployer:deployer /srv/apps/iscontrol
$ systemctl start phoenix-iscontrol-app.service