mirror of
https://github.com/YunoHost-Apps/discourse_ynh.git
synced 2024-09-03 18:26:18 +02:00
Fix preload warnings
This commit is contained in:
parent
b7161f3c16
commit
83d9427e85
1 changed files with 5 additions and 0 deletions
|
@ -152,9 +152,14 @@ ynh_store_file_checksum "$ldap_config_file"
|
|||
# SETUP PUMA, A RUBY SERVER
|
||||
#=================================================
|
||||
puma_config_file="$final_path/config/puma.rb"
|
||||
# Set log files location
|
||||
ynh_replace_string "#{APP_ROOT}/log/puma" "/var/log/$app/puma" "$puma_config_file"
|
||||
# Set application absolute path
|
||||
ynh_replace_string "/home/discourse/discourse" "/var/www/$app" "$puma_config_file"
|
||||
# Don't daemonize so we get logs in journalctl
|
||||
ynh_replace_string "daemonize true" "daemonize false" "$puma_config_file"
|
||||
# Don't preload threads to avoid warnings
|
||||
ynh_replace_string "preload_app" "#preload_app" "$puma_config_file"
|
||||
# Calculate and store the config file checksum
|
||||
ynh_store_file_checksum "$puma_config_file"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue