diff --git a/scripts/install b/scripts/install index dea69f2..d12a003 100644 --- a/scripts/install +++ b/scripts/install @@ -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"