diff options
-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); } |