-
ssh to <LINUX_SERVER>
-
sudo apt install mysql
-
sudo mysql_secure_installation
-
git clone git@github.com:dwitvliet/NemaNode.git
-
cd NemaNode
-
Setup config file:
scripts/setup_config.sh nemanode nemanode_user password | sudo mysql
-
Add google analytics to
config.ini
-
Populate database:
npm run populate-database
-
build the client by running
npm run build-prod
-
Start the server with
forever start ./src/server/index.js
-
Add SSL certificate
sudo /opt/bitnami/bncert-tool
-
Add to bitnami configuration file
/opt/bitnami/apache2/conf/bitnami/bitnami.conf
after<VirtualHost _default_:443>
:DocumentRoot "/home/bitnami/NemaNode/dist" <Directory "/home/bitnami/NemaNode/dist"> Require all granted </Directory> ProxyPass / http://localhost:3000/ ProxyPassReverse / http://localhost:3000/
-
Restart apache with
sudo /opt/bitnami/ctlscript.sh restart apache
- ssh to <LINUX_SERVER>
cd NemaNode
git pull
- If there are dependency changes:
rm -rf node_modules; npm install
- If there are database changes:
npm run populate-database
npm run build-prod
- Restart backend:
forever restart ./src/server/index.js