deploy mechanisms
This commit is contained in:
parent
16c773a565
commit
c1477a1d69
7
start.sh
Executable file
7
start.sh
Executable 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
12
the-forest.service
Normal 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
|
Loading…
Reference in New Issue
Block a user