ruby and nodejs resources
This commit is contained in:
parent
3d53d933d5
commit
4976431397
6 changed files with 8 additions and 31 deletions
|
|
@ -19,7 +19,7 @@ cpe = "cpe:2.3:a:joinmastodon:mastodon"
|
|||
fund = "https://joinmastodon.org/sponsors"
|
||||
|
||||
[integration]
|
||||
yunohost = ">= 12.0.10"
|
||||
yunohost = ">= 12.1.15"
|
||||
helpers_version = "2.1"
|
||||
architectures = "all"
|
||||
multi_instance = true
|
||||
|
|
@ -87,3 +87,10 @@ ram.runtime = "500M"
|
|||
|
||||
[resources.database]
|
||||
type = "postgresql"
|
||||
|
||||
[resources.nodejs]
|
||||
version = "20"
|
||||
|
||||
[resources.ruby]
|
||||
version = "3.4.5"
|
||||
|
||||
|
|
|
|||
|
|
@ -5,8 +5,6 @@
|
|||
#=================================================
|
||||
|
||||
memory_needed="2560"
|
||||
ruby_version=3.4.5
|
||||
nodejs_version=20
|
||||
|
||||
case $YNH_ARCH in
|
||||
amd64)
|
||||
|
|
|
|||
|
|
@ -8,14 +8,6 @@ admin_mail=$(ynh_user_get_info --username=$admin --key=mail)
|
|||
# Set `service` settings to support `yunohost app shell` command
|
||||
ynh_app_setting_set --key=service --value="$app-web.service"
|
||||
|
||||
#=================================================
|
||||
# INSTALL DEPENDENCIES
|
||||
#=================================================
|
||||
ynh_script_progression "Installing Ruby and NodeJS..."
|
||||
|
||||
ynh_ruby_install
|
||||
ynh_nodejs_install
|
||||
|
||||
#=================================================
|
||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
|
|
|
|||
|
|
@ -44,10 +44,6 @@ ynh_safe_rm "/etc/cron.d/$app"
|
|||
# Remote logrotate config
|
||||
ynh_config_remove_logrotate
|
||||
|
||||
# Remove metapackage and its dependencies
|
||||
ynh_ruby_remove
|
||||
ynh_nodejs_remove
|
||||
|
||||
# Remove swap
|
||||
ynh_del_swap
|
||||
|
||||
|
|
|
|||
|
|
@ -39,14 +39,6 @@ ynh_script_progression "Adding $swap_needed Mo to swap..."
|
|||
|
||||
ynh_add_swap --size=$swap_needed
|
||||
|
||||
#=================================================
|
||||
# REINSTALL DEPENDENCIES
|
||||
#=================================================
|
||||
ynh_script_progression "Reinstalling Ruby and NodeJS..."
|
||||
|
||||
ynh_ruby_install
|
||||
ynh_nodejs_install
|
||||
|
||||
#=================================================
|
||||
# BUILD APP
|
||||
#=================================================
|
||||
|
|
|
|||
|
|
@ -46,14 +46,6 @@ fi
|
|||
ynh_script_progression "Adding $swap_needed Mo to swap..."
|
||||
ynh_add_swap --size=$swap_needed
|
||||
|
||||
#=================================================
|
||||
# UPGRADE DEPENDENCIES
|
||||
#=================================================
|
||||
ynh_script_progression "Upgrading Ruby and NodeJS..."
|
||||
|
||||
ynh_ruby_install
|
||||
ynh_nodejs_install
|
||||
|
||||
#=================================================
|
||||
# "REBUILD" THE APP (DEPLOY NEW SOURCES, RERUN NPM BUILD...)
|
||||
#=================================================
|
||||
|
|
|
|||
Loading…
Reference in a new issue