with yarn

This commit is contained in:
yalh76
2019-02-03 05:12:39 +01:00
parent 63daad70ea
commit 04f96a0dd2
6 changed files with 23 additions and 15 deletions

View File

@@ -97,9 +97,14 @@ ynh_app_setting_set $app port $port
### - As well as the section "REINSTALL DEPENDENCIES" in the restore script
### - And the section "UPGRADE DEPENDENCIES" in the upgrade script
ynh_install_app_dependencies redis-server postgresql postgresql-contrib
ynh_install_nodejs 10
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
ynh_install_app_dependencies redis-server postgresql postgresql-contrib yarn
#=================================================
# CREATE A POSTGRESQL DATABASE
#=================================================
@@ -134,7 +139,7 @@ ynh_app_setting_set $app final_path $final_path
git clone https://github.com/Requarks/wiki "$final_path"
pushd $final_path
git checkout 2.0.0-beta.15
git checkout
popd
#=================================================
@@ -188,11 +193,7 @@ chown -R "$app":"$app" "$final_path"
pushd $final_path
ynh_use_nodejs
sudo -u $app env PATH=$PATH:$nodejs_path npm install "graphql@^0.13.0" --save --production
sudo -u $app env PATH=$PATH:$nodejs_path npm install "acorn@^6.0.0" --save --production
sudo -u $app env PATH=$PATH:$nodejs_path npm install "babel-core@>=6.0.20" --save --production
sudo -u $app env PATH=$PATH:$nodejs_path npm install --production
sudo -u $app env PATH=$PATH:$nodejs_path npm audit fix
sudo -u $app env PATH=$PATH:$nodejs_path yarn install
sudo -u $app env PATH=$PATH:$nodejs_path npm run build
popd