Example systemd unit for Plonk
@hrbrmstr.dev · 15d ago · plaintext · 19 loc · raw · 0 comments
1[Unit]2 Description=Plonkli Pastebin Service3 After=network.target45 [Service]6 Type=simple7 WorkingDirectory=/home/YOU/apps/plonkli8 Environment="PLONK_PORT=SOME PORT"9 Environment="PLONK_NODE_ENV=production"10 Environment="PLONK_HOST=localhost"11 Environment="PLONK_PUBLIC_URL=https://YOUR-PASTE-DOMAIN"12 Environment="PLONK_DB_PATH=plonk.db"13 Environment="PLONK_COOKIE_SECRET=config.services.plonk.cookie_secret"14 ExecStart=/bin/bash -c 'source $HOME/.nvm/nvm.sh && npm run start'15 Restart=on-failure16 RestartSec=5s1718 [Install]19 WantedBy=default.target
login to post a comment