mirror of
https://github.com/Jarli01/xenorchestra_installer
synced 2026-07-17 20:11:21 +00:00
Yarn Installation as required from XOA developers (March 2017)
Installs the required Yarn package manager and then completes the installation using `yarn install --force' rather than 'npm install' and 'npm run build'
This commit is contained in:
@@ -2,6 +2,8 @@
|
|||||||
sudo apt-get install --yes nfs-common
|
sudo apt-get install --yes nfs-common
|
||||||
cd /opt
|
cd /opt
|
||||||
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
|
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
|
||||||
|
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
|
||||||
|
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
|
||||||
sudo apt-get install --yes nodejs
|
sudo apt-get install --yes nodejs
|
||||||
curl -o /usr/local/bin/n https://raw.githubusercontent.com/visionmedia/n/master/bin/n
|
curl -o /usr/local/bin/n https://raw.githubusercontent.com/visionmedia/n/master/bin/n
|
||||||
sudo chmod +x /usr/local/bin/n
|
sudo chmod +x /usr/local/bin/n
|
||||||
@@ -15,8 +17,7 @@ sudo cp sample.config.yaml .xo-server.yaml
|
|||||||
sudo sed -i /mounts/a\\" '/': '/opt/xo-web/dist'" .xo-server.yaml
|
sudo sed -i /mounts/a\\" '/': '/opt/xo-web/dist'" .xo-server.yaml
|
||||||
cd /opt/xo-web
|
cd /opt/xo-web
|
||||||
sudo npm i lodash.trim@3.0.1
|
sudo npm i lodash.trim@3.0.1
|
||||||
sudo npm install
|
yarn install --force
|
||||||
sudo npm run build
|
|
||||||
cat > /etc/systemd/system/xo-server.service <<EOF
|
cat > /etc/systemd/system/xo-server.service <<EOF
|
||||||
# systemd service for XO-Server.
|
# systemd service for XO-Server.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user