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

Merge pull request #54 from YunoHost-Apps/revert-51-silence-warnings

Revert "Appease linter"
This commit is contained in:
tituspijean 2021-09-29 09:41:21 +02:00 committed by GitHub
commit 259959cff2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 14 deletions

View file

@ -31,11 +31,12 @@
"install" : [
{
"name": "domain",
"type": "domain"
"type": "domain",
"example": "domain.org"
},
{
"name": "path",
"type": "path",
"type": "path",
"example": "/blog",
"default": "/blog"
},

View file

@ -129,12 +129,12 @@ ynh_script_progression --message="Building $app... (this will take some time and
pushd "$final_path" || ynh_die
ynh_use_nodejs
ynh_exec_warn_less yarn install --non-interactive --silent
ynh_exec_warn_less yarn global add knex-migrator
ynh_exec_warn_less NODE_ENV=production knex-migrator init
ynh_exec_warn_less yarn global add grunt-cli ember-cli
ynh_exec_warn_less NODE_ENV=production grunt symlink
ynh_exec_warn_less NODE_ENV=production grunt init --force
yarn install --non-interactive --silent
yarn global add knex-migrator
NODE_ENV=production knex-migrator init
yarn global add grunt-cli ember-cli
NODE_ENV=production grunt symlink
NODE_ENV=production grunt init --force
popd || ynh_die

View file

@ -39,6 +39,8 @@ port=$(ynh_app_setting_get --app=$app --key=port)
#=================================================
ynh_script_progression --message="Validating restoration parameters..."
ynh_webpath_available --domain=$domain --path_url=$path_url \
|| ynh_die --message="Path not available: ${domain}${path_url}"
test ! -d $final_path \
|| ynh_die --message="There is already a directory: $final_path "

View file

@ -156,12 +156,12 @@ then
ynh_script_progression --message="Building $app... (this will take some time and resources!)"
pushd "$final_path" || ynh_die
ynh_exec_warn_less yarn install
ynh_exec_warn_less yarn global add knex-migrator
ynh_exec_warn_less NODE_ENV=production knex-migrator init
ynh_exec_warn_less yarn global add grunt
ynh_exec_warn_less NODE_ENV=production grunt symlink
ynh_exec_warn_less NODE_ENV=production grunt init --force
yarn install
yarn global add knex-migrator
NODE_ENV=production knex-migrator init
yarn global add grunt
NODE_ENV=production grunt symlink
NODE_ENV=production grunt init --force
popd || ynh_die
fi