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:
parent
1bb2849165
commit
2ac2192c73
2 changed files with 14 additions and 14 deletions
|
@ -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
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue