mirror of
https://github.com/YunoHost-Apps/crabfit_ynh.git
synced 2024-09-03 18:16:21 +02:00
Fix build & change_url
This commit is contained in:
parent
53d2a8f398
commit
7c0cb6d68d
3 changed files with 9 additions and 12 deletions
|
@ -1,4 +1,3 @@
|
|||
NEXT_PUBLIC_API_URL=https://__DOMAIN__/api/
|
||||
NEXT_TELEMETRY_DISABLED=1
|
||||
NODE_ENV=production
|
||||
NODE_TLS_REJECT_UNAUTHORIZED='0'
|
||||
|
|
|
@ -25,27 +25,18 @@ multi_instance = true
|
|||
ldap = false
|
||||
sso = false
|
||||
disk = "500M"
|
||||
ram.build = "100M"
|
||||
ram.build = "500M"
|
||||
ram.runtime = "100M"
|
||||
|
||||
[install]
|
||||
[install.domain]
|
||||
type = "domain"
|
||||
|
||||
[install.path]
|
||||
type = "path"
|
||||
default = "/crab"
|
||||
|
||||
[install.init_main_permission]
|
||||
type = "group"
|
||||
default = "visitors"
|
||||
|
||||
[install.language]
|
||||
ask.en = "Choose the application language"
|
||||
ask.fr = "Choisissez la langue de l'application"
|
||||
type = "select"
|
||||
choices = ["fr", "en"]
|
||||
default = "fr"
|
||||
|
||||
[resources]
|
||||
[resources.sources]
|
||||
|
@ -64,7 +55,7 @@ ram.runtime = "100M"
|
|||
api.default = 3001
|
||||
|
||||
[resources.apt]
|
||||
packages = "postgresql pkg-config"
|
||||
packages = "postgresql pkg-config libssl-dev"
|
||||
|
||||
[resources.database]
|
||||
type = "postgresql"
|
||||
|
|
|
@ -31,6 +31,13 @@ ynh_change_url_nginx_config
|
|||
#=================================================
|
||||
# ...
|
||||
#=================================================
|
||||
ynh_add_config --template="../conf/front.env" --destination="$install_dir/frontend/.env.local"
|
||||
ynh_add_config --template="../conf/back.env" --destination="$install_dir/api/.env"
|
||||
|
||||
# Next.js copies some env values inside the
|
||||
# production build so we have to rebuild it
|
||||
ynh_use_nodejs
|
||||
build_frontend
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALISATION
|
||||
|
|
Loading…
Add table
Reference in a new issue