Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[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