diff options
author | joel <joel.h.kronqvist@gmail.com> | 2021-12-19 16:53:49 +0200 |
---|---|---|
committer | joel <joel.h.kronqvist@gmail.com> | 2021-12-19 16:53:49 +0200 |
commit | 58d5e12f4bcd3381cec96685abab0353e6ffaf63 (patch) | |
tree | e02d4dd0b4ea2f737d4826c5a6e76a043f55f9ff | |
parent | fc48ff89c2015757ba9936795b34201156e38b9e (diff) | |
download | LYLLRuoka-58d5e12f4bcd3381cec96685abab0353e6ffaf63.tar.gz LYLLRuoka-58d5e12f4bcd3381cec96685abab0353e6ffaf63.zip |
Server init & update
-rw-r--r-- | crontab_add.txt | 6 | ||||
-rwxr-xr-x | init.sh | 4 | ||||
-rw-r--r-- | server.js | 2 |
3 files changed, 11 insertions, 1 deletions
diff --git a/crontab_add.txt b/crontab_add.txt new file mode 100644 index 0000000..5e7db63 --- /dev/null +++ b/crontab_add.txt @@ -0,0 +1,6 @@ +# these are probably going to need some fixing, for example the shutdown path may differ +# to normal user: +@reboot /home/USERNAME/FoodJS/init.sh + +# to root: +0 0 * * 7 /sbin/shutdown -r now @@ -0,0 +1,4 @@ +#!/bin/sh +cd /home/joel/FoodJS +git clone "https://github.com/JoelHMikael/FoodJS.git" >> /tmp/test.txt +node ./server.js @@ -59,7 +59,7 @@ async function init() } // start server - http.createServer(server).listen(80); + http.createServer(server).listen(8080); } |