#!/usr/bin/env bash # APT-GET sudo apt-get update sudo apt-get install lsb-release libfontconfig1 libfreetype6 -y --force-yes sudo apt-get install curl git python-software-properties -y --force-yes # Installation of NodeJS sudo add-apt-repository -y ppa:chris-lea/node.js sudo apt-get update sudo apt-get install -y nodejs source ~/.profile # Installation of some packages globally npm install bower -g npm install forever -g # Installation of YellowLabTools sudo mkdir /space sudo chown $USER /space cd /space git clone https://github.com/gmetais/YellowLabTools.git --branch master cd YellowLabTools npm install --production bower install --config.interactive=false --allow-root # Start the server rm server_config/settings.json cp server_config/settings-prod.json server_config/settings.json forever start -c "node --stack-size=65500" server.js