1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ghost_ynh.git synced 2024-09-03 19:16:02 +02:00

Fix building steps

This commit is contained in:
tituspijean 2021-10-24 18:09:43 +02:00
parent 1bb2849165
commit 2ac2192c73
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720
2 changed files with 14 additions and 14 deletions

View file

@ -129,16 +129,16 @@ chown $app:$app "$final_path/config.production.json"
#==============================================
# BUILD GHOST
#==============================================
ynh_script_progression --message="Building $app... (this will take some time and resources!)"
ynh_script_progression --message="Building Ghost... (this will take some time and resources!)"
pushd "$final_path"
ynh_use_nodejs
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH yarn install --non-interactive --silent
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH yarn global add knex-migrator
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH NODE_ENV=production knex-migrator init
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH yarn global add grunt-cli ember-cli
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH NODE_ENV=production grunt symlink
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH NODE_ENV=production grunt init --force
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH yarn install --non-interactive
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH yarn add knex-migrator
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH NODE_ENV=production $final_path/node_modules/.bin/knex-migrator init
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH yarn add grunt-cli ember-cli
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH NODE_ENV=production $final_path/node_modules/.bin/grunt symlink
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH NODE_ENV=production $final_path/node_modules/.bin/grunt init --force
popd
#=================================================

View file

@ -155,15 +155,15 @@ chown $app:$app "$final_path/config.production.json"
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Building $app... (this will take some time and resources!)"
ynh_script_progression --message="Building Ghost... (this will take some time and resources!)"
pushd "$final_path"
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH yarn install
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH yarn global add knex-migrator
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH NODE_ENV=production knex-migrator init
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH yarn global add grunt
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH NODE_ENV=production grunt symlink
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH NODE_ENV=production grunt init --force
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH yarn install --non-interactive
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH yarn add knex-migrator
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH NODE_ENV=production $final_path/node_modules/.bin/knex-migrator init
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH yarn add grunt-cli ember-cli
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH NODE_ENV=production $final_path/node_modules/.bin/grunt symlink
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH NODE_ENV=production $final_path/node_modules/.bin/grunt init --force
popd
fi