-
Make sure you are using a version of Node.js greater than 6.X
-
change the port that node listens on
sudo apt-get install libcap2-bin
sudo setcap cap_net_bind_service=+ep /usr/bin/node <--(change if this isn't your node application path)
Change the window.version in 'public/html/config.js' to match the current beapi-all-in-one version you are running:
window.version = '1.6.58';
also install...
npm install googleapis
- To run the application, go into the root directory and type the following:
nodejs app.js
- add 'beapi' user
useradd beapi -d /home/beapi
- move application to /usr/share
sudo mkdir /usr/share/beapi
mv beapi_frontend /usr/share/beapi/frontend
- Copy your service file into the /etc/systemd/system.
- Start it with:
systemctl start beapi_frontend
Enable it to run on boot with:
systemctl enable beapi_frontend
Pulling new changes on the server currently requires:
sudo git -c http.sslVerify=false pull
- config.json : contains url of 'master' instance; this has to be set
- config.js : env variables
- window.version : version of BeAPI you are running (ie '1.5.58'); this has to be set.