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:
commit
259959cff2
4 changed files with 17 additions and 14 deletions
|
@ -31,11 +31,12 @@
|
||||||
"install" : [
|
"install" : [
|
||||||
{
|
{
|
||||||
"name": "domain",
|
"name": "domain",
|
||||||
"type": "domain"
|
"type": "domain",
|
||||||
|
"example": "domain.org"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "path",
|
"name": "path",
|
||||||
"type": "path",
|
"type": "path",
|
||||||
"example": "/blog",
|
"example": "/blog",
|
||||||
"default": "/blog"
|
"default": "/blog"
|
||||||
},
|
},
|
||||||
|
|
|
@ -129,12 +129,12 @@ ynh_script_progression --message="Building $app... (this will take some time and
|
||||||
pushd "$final_path" || ynh_die
|
pushd "$final_path" || ynh_die
|
||||||
|
|
||||||
ynh_use_nodejs
|
ynh_use_nodejs
|
||||||
ynh_exec_warn_less yarn install --non-interactive --silent
|
yarn install --non-interactive --silent
|
||||||
ynh_exec_warn_less yarn global add knex-migrator
|
yarn global add knex-migrator
|
||||||
ynh_exec_warn_less NODE_ENV=production knex-migrator init
|
NODE_ENV=production knex-migrator init
|
||||||
ynh_exec_warn_less yarn global add grunt-cli ember-cli
|
yarn global add grunt-cli ember-cli
|
||||||
ynh_exec_warn_less NODE_ENV=production grunt symlink
|
NODE_ENV=production grunt symlink
|
||||||
ynh_exec_warn_less NODE_ENV=production grunt init --force
|
NODE_ENV=production grunt init --force
|
||||||
|
|
||||||
popd || ynh_die
|
popd || ynh_die
|
||||||
|
|
||||||
|
|
|
@ -39,6 +39,8 @@ port=$(ynh_app_setting_get --app=$app --key=port)
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Validating restoration parameters..."
|
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 \
|
test ! -d $final_path \
|
||||||
|| ynh_die --message="There is already a directory: $final_path "
|
|| ynh_die --message="There is already a directory: $final_path "
|
||||||
|
|
||||||
|
|
|
@ -156,12 +156,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" || ynh_die
|
pushd "$final_path" || ynh_die
|
||||||
ynh_exec_warn_less yarn install
|
yarn install
|
||||||
ynh_exec_warn_less yarn global add knex-migrator
|
yarn global add knex-migrator
|
||||||
ynh_exec_warn_less NODE_ENV=production knex-migrator init
|
NODE_ENV=production knex-migrator init
|
||||||
ynh_exec_warn_less yarn global add grunt
|
yarn global add grunt
|
||||||
ynh_exec_warn_less NODE_ENV=production grunt symlink
|
NODE_ENV=production grunt symlink
|
||||||
ynh_exec_warn_less NODE_ENV=production grunt init --force
|
NODE_ENV=production grunt init --force
|
||||||
|
|
||||||
popd || ynh_die
|
popd || ynh_die
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue