Created
July 9, 2020 20:16
-
-
Save eritbh/649e3ff57bca06f7fd55916d8a8620b7 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=Web: Anime Awards Site | |
ConditionPathExists=/home/george/animeawards-mkii | |
After=network.target | |
[Service] | |
Type=simple | |
LimitNOFILE=1024 | |
Restart=on-failure | |
RestartSec=10 | |
User=root | |
WorkingDirectory=/home/george/animeawards-mkii | |
Environment=NODE_VERSION=11 | |
Environment=PORT=80 | |
ExecStartPre=/home/george/.nvm/nvm-exec /home/george/.yarn/bin/yarn | |
ExecStartPre=/home/george/.nvm/nvm-exec /home/george/.yarn/bin/yarn build-prod | |
ExecStart=/home/george/.nvm/nvm-exec /home/george/.yarn/bin/yarn serve | |
StandardOutput=syslog | |
StandardError=syslog | |
SyslogIdentifier=web.animeawards | |
[Install] | |
WantedBy=multi-user.target | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment