mirror of
https://github.com/YunoHost-Apps/ghost_ynh.git
synced 2024-09-03 19:16:02 +02:00
Build as $app user
This commit is contained in:
parent
19072c02ac
commit
a6f38d51c1
2 changed files with 12 additions and 12 deletions
|
@ -133,12 +133,12 @@ ynh_script_progression --message="Building $app... (this will take some time and
|
||||||
|
|
||||||
pushd "$final_path"
|
pushd "$final_path"
|
||||||
ynh_use_nodejs
|
ynh_use_nodejs
|
||||||
ynh_exec_warn_less yarn install --non-interactive --silent
|
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH yarn install --non-interactive --silent
|
||||||
ynh_exec_warn_less yarn global add knex-migrator
|
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH yarn global add knex-migrator
|
||||||
ynh_exec_warn_less NODE_ENV=production knex-migrator init
|
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH NODE_ENV=production knex-migrator init
|
||||||
ynh_exec_warn_less yarn global add grunt-cli ember-cli
|
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH yarn global add grunt-cli ember-cli
|
||||||
ynh_exec_warn_less NODE_ENV=production grunt symlink
|
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH NODE_ENV=production grunt symlink
|
||||||
ynh_exec_warn_less NODE_ENV=production grunt init --force
|
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH NODE_ENV=production grunt init --force
|
||||||
popd
|
popd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -158,12 +158,12 @@ then
|
||||||
ynh_script_progression --message="Building $app... (this will take some time and resources!)"
|
ynh_script_progression --message="Building $app... (this will take some time and resources!)"
|
||||||
|
|
||||||
pushd "$final_path"
|
pushd "$final_path"
|
||||||
ynh_exec_warn_less yarn install
|
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH yarn install
|
||||||
ynh_exec_warn_less yarn global add knex-migrator
|
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH yarn global add knex-migrator
|
||||||
ynh_exec_warn_less NODE_ENV=production knex-migrator init
|
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH NODE_ENV=production knex-migrator init
|
||||||
ynh_exec_warn_less yarn global add grunt
|
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH yarn global add grunt
|
||||||
ynh_exec_warn_less NODE_ENV=production grunt symlink
|
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH NODE_ENV=production grunt symlink
|
||||||
ynh_exec_warn_less NODE_ENV=production grunt init --force
|
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH NODE_ENV=production grunt init --force
|
||||||
popd
|
popd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue