From 7678f9a900a33e0ff0e5f3d2fd2e6c364117c3bd Mon Sep 17 00:00:00 2001 From: Jarli01 Date: Mon, 6 Mar 2017 10:56:44 -0500 Subject: [PATCH] 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' --- xo_install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xo_install.sh b/xo_install.sh index 46b237d..9b52ad3 100644 --- a/xo_install.sh +++ b/xo_install.sh @@ -2,6 +2,8 @@ sudo apt-get install --yes nfs-common cd /opt 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 curl -o /usr/local/bin/n https://raw.githubusercontent.com/visionmedia/n/master/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 cd /opt/xo-web sudo npm i lodash.trim@3.0.1 -sudo npm install -sudo npm run build +yarn install --force cat > /etc/systemd/system/xo-server.service <