$ nix-build release.nix
$ result/bin/muellshack
starting muellshack with data: ./static_muelldata.json config: ./storage.json on port 8081
$ npm install
$ node app.js
check out the configuration for wolf in https://git.shackspace.de/rz/stockholm/blob/master/krebs/2configs/shack/muellshack.nix
Maybe you have to add this to your config:
/etc/nginx/sites-available/default
:
location /muellshack/ {
proxy_pass http://localhost:8081/muellshack/;
}
Don't forget to autostart with pm2
$ sudo su -c "env PATH=$PATH:/usr/bin pm2 startup linux -u shack --hp /home/shack"
$ pm2 start process.json
$ pm2 save
will work on ubuntu
sudo su -c "pm2 status" shack