add nodejs install
This commit is contained in:
parent
cd1b103f58
commit
c7afcedad8
1 changed files with 25 additions and 13 deletions
|
@ -98,20 +98,32 @@ ynh_app_setting_set --app=$app --key=port --value=$port
|
||||||
# ynh_script_progression --message="Configuring firewall..." --time --weight=1
|
# ynh_script_progression --message="Configuring firewall..." --time --weight=1
|
||||||
# ynh_exec_warn_less yunohost firewall allow --no-upnp TCP $port
|
# ynh_exec_warn_less yunohost firewall allow --no-upnp TCP $port
|
||||||
|
|
||||||
#=================================================
|
# #=================================================
|
||||||
# INSTALL DEPENDENCIES
|
# # INSTALL DEPENDENCIES
|
||||||
#=================================================
|
# #=================================================
|
||||||
ynh_script_progression --message="Installing dependencies..." --time --weight=1
|
# ynh_script_progression --message="Installing dependencies..." --time --weight=1
|
||||||
|
|
||||||
### `ynh_install_app_dependencies` allows you to add any "apt" dependencies to the package.
|
# ### `ynh_install_app_dependencies` allows you to add any "apt" dependencies to the package.
|
||||||
### Those deb packages will be installed as dependencies of this package.
|
# ### Those deb packages will be installed as dependencies of this package.
|
||||||
### If you're not using this helper:
|
# ### If you're not using this helper:
|
||||||
### - Remove the section "REMOVE DEPENDENCIES" in the remove script
|
# ### - Remove the section "REMOVE DEPENDENCIES" in the remove script
|
||||||
### - Remove the variable "pkg_dependencies" in _common.sh
|
# ### - Remove the variable "pkg_dependencies" in _common.sh
|
||||||
### - As well as the section "REINSTALL DEPENDENCIES" in the restore script
|
# ### - As well as the section "REINSTALL DEPENDENCIES" in the restore script
|
||||||
### - And the section "UPGRADE DEPENDENCIES" in the upgrade script
|
# ### - And the section "UPGRADE DEPENDENCIES" in the upgrade script
|
||||||
|
|
||||||
ynh_install_app_dependencies $pkg_dependencies
|
# ynh_install_app_dependencies $pkg_dependencies
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# INSTALL NODEJS
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
ynh_install_nodejs $node_version
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# NODEJS Version
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
ynh_use_nodejs
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CREATE DEDICATED USER
|
# CREATE DEDICATED USER
|
||||||
|
@ -196,8 +208,8 @@ ynh_add_nginx_config
|
||||||
# SPECIFIC SETUP
|
# SPECIFIC SETUP
|
||||||
#=================================================
|
#=================================================
|
||||||
# Install pm2 (may be replaced by adequate systemd conf)
|
# Install pm2 (may be replaced by adequate systemd conf)
|
||||||
#=================================================
|
|
||||||
npm install pm2 -g
|
npm install pm2 -g
|
||||||
|
npm install NODE_ENV=production
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CREATE DATA DIRECTORY
|
# CREATE DATA DIRECTORY
|
||||||
|
|
Loading…
Add table
Reference in a new issue