mirror of
https://github.com/YunoHost-Apps/snweb_ynh.git
synced 2024-09-03 20:26:22 +02:00
Merge pull request #31 from YunoHost-Apps/fix_package-linter
Fix package linter
This commit is contained in:
commit
f52fa27d62
8 changed files with 36 additions and 47 deletions
19
README.md
19
README.md
|
@ -27,17 +27,16 @@ The Standard Notes Web App. An end-to-end encrypted note-taking app. Web, Mac, W
|
|||
|
||||
## Disclaimers / important information
|
||||
|
||||
* Any known limitations, constrains or stuff not working, such as (but not limited to):
|
||||
* No single-sign on or LDAP integration
|
||||
* The app requires up 1500MB of RAM to install
|
||||
* The app requires at least 80MB of RAM to work properly.
|
||||
* The app requires around 1000MB of disk.
|
||||
* A dedicated domain is requierd if you want to use extensions.
|
||||
* notes.your-domain.tld/ -> Extension Manager is working
|
||||
* your-domain.tld/notes/ -> Extension Manager is not working
|
||||
* No single-sign on or LDAP integration
|
||||
* The app requires up 1500MB of RAM to install
|
||||
* The app requires at least 80MB of RAM to work properly.
|
||||
* The app requires around 1000MB of disk.
|
||||
|
||||
* Other infos that people should be aware of, such as:
|
||||
* The config-file is stored under "/opt/yunohost/$app/live/.env"
|
||||
* A dedicated domain is requierd if you want to use extensions.
|
||||
* notes.your-domain.tld/ -> Extension Manager is working
|
||||
* your-domain.tld/notes/ -> Extension Manager is not working
|
||||
|
||||
* The config-file is stored under "/opt/yunohost/$app/live/.env"
|
||||
|
||||
## Documentation and resources
|
||||
|
||||
|
|
19
README_fr.md
19
README_fr.md
|
@ -23,17 +23,16 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour
|
|||
|
||||
## Avertissements / informations importantes
|
||||
|
||||
* Any known limitations, constrains or stuff not working, such as (but not limited to):
|
||||
* No single-sign on or LDAP integration
|
||||
* The app requires up 1500MB of RAM to install
|
||||
* The app requires at least 80MB of RAM to work properly.
|
||||
* The app requires around 1000MB of disk.
|
||||
* A dedicated domain is requierd if you want to use extensions.
|
||||
* notes.your-domain.tld/ -> Extension Manager is working
|
||||
* your-domain.tld/notes/ -> Extension Manager is not working
|
||||
* No single-sign on or LDAP integration
|
||||
* The app requires up 1500MB of RAM to install
|
||||
* The app requires at least 80MB of RAM to work properly.
|
||||
* The app requires around 1000MB of disk.
|
||||
|
||||
* Other infos that people should be aware of, such as:
|
||||
* The config-file is stored under "/opt/yunohost/$app/live/.env"
|
||||
* A dedicated domain is requierd if you want to use extensions.
|
||||
* notes.your-domain.tld/ -> Extension Manager is working
|
||||
* your-domain.tld/notes/ -> Extension Manager is not working
|
||||
|
||||
* The config-file is stored under "/opt/yunohost/$app/live/.env"
|
||||
|
||||
## Documentations et ressources
|
||||
|
||||
|
|
|
@ -3,11 +3,6 @@ location __PATH__/ {
|
|||
# Path to source
|
||||
alias __FINALPATH__/live/public ;
|
||||
|
||||
# Force usage of https
|
||||
if ($scheme = http) {
|
||||
rewrite ^ https://$server_name$request_uri? permanent;
|
||||
}
|
||||
|
||||
# Common parameter to increase upload size limit in conjunction with dedicated php-fpm file
|
||||
client_max_body_size 25M;
|
||||
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
* Any known limitations, constrains or stuff not working, such as (but not limited to):
|
||||
* No single-sign on or LDAP integration
|
||||
* The app requires up 1500MB of RAM to install
|
||||
* The app requires at least 80MB of RAM to work properly.
|
||||
* The app requires around 1000MB of disk.
|
||||
* A dedicated domain is requierd if you want to use extensions.
|
||||
* notes.your-domain.tld/ -> Extension Manager is working
|
||||
* your-domain.tld/notes/ -> Extension Manager is not working
|
||||
* No single-sign on or LDAP integration
|
||||
* The app requires up 1500MB of RAM to install
|
||||
* The app requires at least 80MB of RAM to work properly.
|
||||
* The app requires around 1000MB of disk.
|
||||
|
||||
* Other infos that people should be aware of, such as:
|
||||
* The config-file is stored under "/opt/yunohost/$app/live/.env"
|
||||
* A dedicated domain is requierd if you want to use extensions.
|
||||
* notes.your-domain.tld/ -> Extension Manager is working
|
||||
* your-domain.tld/notes/ -> Extension Manager is not working
|
||||
|
||||
* The config-file is stored under "/opt/yunohost/$app/live/.env"
|
||||
|
|
|
@ -31,8 +31,7 @@
|
|||
"install": [
|
||||
{
|
||||
"name": "domain",
|
||||
"type": "domain",
|
||||
"example": "example.com"
|
||||
"type": "domain"
|
||||
},
|
||||
{
|
||||
"name": "path",
|
||||
|
|
|
@ -161,10 +161,10 @@ pushd "$final_path/live"
|
|||
ynh_use_nodejs
|
||||
ynh_exec_as $app $ynh_ruby_load_path bin/bundle config set --local path 'vendor/bundle'
|
||||
ynh_exec_as $app $ynh_ruby_load_path bin/bundle config set with 'development'
|
||||
ynh_exec_warn_less "ynh_exec_as $app $ynh_ruby_load_path bin/bundle install -j$(getconf _NPROCESSORS_ONLN) --quiet"
|
||||
ynh_exec_warn_less "ynh_exec_as $app env NODE_OPTIONS=\"--max-old-space-size=$node_max_old_space_size\" PATH=$ynh_node_load_PATH yarn install --pure-lockfile"
|
||||
ynh_exec_warn_less "ynh_exec_as $app env NODE_OPTIONS=\"--max-old-space-size=$node_max_old_space_size\" PATH=$ynh_node_load_PATH yarn bundle"
|
||||
ynh_exec_warn_less "ynh_exec_as $app $ynh_ruby_load_path bin/bundle exec rails assets:precompile --quiet"
|
||||
ynh_exec_warn_less ynh_exec_as $app $ynh_ruby_load_path bin/bundle install -j$(getconf _NPROCESSORS_ONLN) --quiet
|
||||
ynh_exec_warn_less ynh_exec_as $app env NODE_OPTIONS="--max-old-space-size=$node_max_old_space_size" PATH=$ynh_node_load_PATH yarn install --pure-lockfile
|
||||
ynh_exec_warn_less ynh_exec_as $app env NODE_OPTIONS="--max-old-space-size=$node_max_old_space_size" PATH=$ynh_node_load_PATH yarn bundle
|
||||
ynh_exec_warn_less ynh_exec_as $app $ynh_ruby_load_path bin/bundle exec rails assets:precompile --quiet
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -37,8 +37,6 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
|||
#=================================================
|
||||
ynh_script_progression --message="Validating restoration parameters..." --weight=1
|
||||
|
||||
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 "
|
||||
|
||||
|
|
|
@ -181,10 +181,10 @@ then
|
|||
ynh_use_nodejs
|
||||
ynh_exec_as $app $ynh_ruby_load_path bin/bundle config set --local path 'vendor/bundle'
|
||||
ynh_exec_as $app $ynh_ruby_load_path bin/bundle config set with 'development'
|
||||
ynh_exec_warn_less "ynh_exec_as $app $ynh_ruby_load_path bin/bundle install -j$(getconf _NPROCESSORS_ONLN) --quiet"
|
||||
ynh_exec_warn_less "ynh_exec_as $app env NODE_OPTIONS=\"--max-old-space-size=$node_max_old_space_size\" PATH=$ynh_node_load_PATH yarn install --pure-lockfile"
|
||||
ynh_exec_warn_less "ynh_exec_as $app env NODE_OPTIONS=\"--max-old-space-size=$node_max_old_space_size\" PATH=$ynh_node_load_PATH yarn bundle"
|
||||
ynh_exec_warn_less "ynh_exec_as $app $ynh_ruby_load_path bin/bundle exec rails assets:precompile --quiet"
|
||||
ynh_exec_warn_less ynh_exec_as $app $ynh_ruby_load_path bin/bundle install -j$(getconf _NPROCESSORS_ONLN) --quiet
|
||||
ynh_exec_warn_less ynh_exec_as $app env NODE_OPTIONS="--max-old-space-size=$node_max_old_space_size" PATH=$ynh_node_load_PATH yarn install --pure-lockfile
|
||||
ynh_exec_warn_less ynh_exec_as $app env NODE_OPTIONS="--max-old-space-size=$node_max_old_space_size" PATH=$ynh_node_load_PATH yarn bundle
|
||||
ynh_exec_warn_less ynh_exec_as $app $ynh_ruby_load_path bin/bundle exec rails assets:precompile --quiet
|
||||
popd
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue