Merge pull request #5 from Jarli01/dp-fixbuild

Update yarn commands
This commit is contained in:
Danp2 2017-12-30 09:53:54 -06:00 committed by GitHub
commit 3aab698f22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -33,11 +33,13 @@ sudo /usr/bin/apt-get install --yes build-essential redis-server libpng-dev git
/usr/bin/git clone -b $xo_branch $xo_server /usr/bin/git clone -b $xo_branch $xo_server
/usr/bin/git clone -b $xo_branch $xo_web /usr/bin/git clone -b $xo_branch $xo_web
cd $xo_server_dir cd $xo_server_dir
/usr/bin/yarn install --force /usr/bin/yarn
/usr/bin/yarn build
sudo cp sample.config.yaml .xo-server.yaml sudo cp sample.config.yaml .xo-server.yaml
sudo sed -i "s|#'/': '/path/to/xo-web/dist/'|'/': '/opt/xo-web/dist'|" .xo-server.yaml sudo sed -i "s|#'/': '/path/to/xo-web/dist/'|'/': '/opt/xo-web/dist'|" .xo-server.yaml
cd $xo_web_dir cd $xo_web_dir
/usr/bin/yarn install --force /usr/bin/yarn
/usr/bin/yarn build
if [[ ! -e $systemd_service_dir/$xo_service ]] ; then if [[ ! -e $systemd_service_dir/$xo_service ]] ; then