2016-01-13 20:23:15 +01:00
|
|
|
#!/bin/bash
|
2016-01-26 21:34:47 +01:00
|
|
|
sudo apt-get install nfs-common
|
2016-01-13 20:23:15 +01:00
|
|
|
cd /opt
|
|
|
|
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
|
|
|
|
sudo apt-get install --yes nodejs
|
|
|
|
curl -o /usr/local/bin/n https://raw.githubusercontent.com/visionmedia/n/master/bin/n
|
2016-01-14 03:28:04 +01:00
|
|
|
sudo chmod +x /usr/local/bin/n
|
|
|
|
sudo n stable
|
2016-01-13 20:23:15 +01:00
|
|
|
sudo apt-get install --yes build-essential redis-server libpng12-dev git python-minimal
|
|
|
|
git clone -b stable https://github.com/vatesfr/xo-server
|
|
|
|
git clone -b stable https://github.com/vatesfr/xo-web
|
|
|
|
cd xo-server
|
|
|
|
sudo npm install && npm run build
|
2016-01-14 03:28:04 +01:00
|
|
|
sudo cp sample.config.yaml .xo-server.yaml
|
|
|
|
sudo sed -i /mounts/a\\" '/': '/opt/xo-web/dist'" .xo-server.yaml
|
2016-01-13 20:23:15 +01:00
|
|
|
cd /opt/xo-web
|
|
|
|
sudo npm i lodash.trim@3.0.1
|
|
|
|
sudo npm install
|
|
|
|
sudo npm run build
|
|
|
|
cd /opt/xo-server
|
|
|
|
sudo npm start
|