1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lemmy_ynh.git synced 2024-09-03 19:36:09 +02:00
This commit is contained in:
ericgaspar 2023-07-11 07:44:39 +02:00
parent fcefb8d8aa
commit 6ac0fa048f
3 changed files with 13 additions and 2 deletions

View file

@ -65,6 +65,9 @@ ram.runtime = "50M"
[resources.apt]
packages = "postgresql espeak"
extras.yarn.repo = "deb https://dl.yarnpkg.com/debian/ stable main"
extras.yarn.key = "https://dl.yarnpkg.com/debian/pubkey.gpg"
extras.yarn.packages = "yarn"
[resources.database]
type = "postgresql"

View file

@ -4,7 +4,7 @@
# COMMON VARIABLES
#=================================================
NODEJS_VERSION=18
NODEJS_VERSION=20
#=================================================
# PERSONAL HELPERS

View file

@ -18,7 +18,6 @@ ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
ynh_use_nodejs
ln -fs /usr/lib/x86_64-linux-musl/libc.so /lib/libc.musl-x86_64.so.1
#=================================================
# CREATE A POSTGRESQL DATABASE
#=================================================
@ -47,6 +46,15 @@ ynh_script_progression --message="Configuring NGINX web server..." --weight=1
# Create a dedicated NGINX config
ynh_add_nginx_config
#=================================================
# INSTALL THE SHARP
#=================================================
pushd $install_dir
ynh_use_nodejs
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn install --global sharp
popd
#=================================================
# MAKE INSTALL
#=================================================