deploy mechanisms

This commit is contained in:
Shoofle 2024-12-12 13:36:45 -05:00
parent 16c773a565
commit c1477a1d69
2 changed files with 19 additions and 0 deletions

7
start.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
export NVM_DIR="/home/shoofle/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
cd /var/www/theforest.shoofle.net
cd server
npm start

12
the-forest.service Normal file
View File

@ -0,0 +1,12 @@
[Unit]
Description=api for the forest wikimud
[Service]
WorkingDirectory=/var/www/theforest.shoofle.net
ExecStart=/var/www/theforest.shoofle.net/start.sh
Type=simple
Restart=always
RestartSec=10
[Install]
WantedBy=basic.target