1
0
Fork 0
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:
tituspijean 2021-10-23 20:14:15 +02:00
parent 19072c02ac
commit a6f38d51c1
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720
2 changed files with 12 additions and 12 deletions

View file

@ -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
#================================================= #=================================================

View file

@ -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