From 4861699ad9ebcb36e721e3641968cf8608b8679e Mon Sep 17 00:00:00 2001 From: monicagiraldochica <165931199+monicagiraldochica@users.noreply.github.com> Date: Tue, 4 Nov 2025 09:56:23 -0600 Subject: [PATCH 1/2] Update run.rb Create data directory at the end of the create_conf function. If this directory doesnt exist, there's an Internal Server Error when trying to access history in the menu. --- run.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/run.rb b/run.rb index 33fa372..b0e8aa4 100644 --- a/run.rb +++ b/run.rb @@ -112,6 +112,9 @@ def create_conf conf["history_db"] = File.join(conf["data_dir"], conf["scheduler"] + ".db") end + # Create data directory + FileUtils.mkdir_p(conf["data_dir"]) + return conf end From 299a9d67dcd8e8e9f969d449ce1143bd4d5d764d Mon Sep 17 00:00:00 2001 From: monicagiraldochica <165931199+monicagiraldochica@users.noreply.github.com> Date: Tue, 4 Nov 2025 09:57:06 -0600 Subject: [PATCH 2/2] require fileutils --- run.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/run.rb b/run.rb index b0e8aa4..bbf0133 100644 --- a/run.rb +++ b/run.rb @@ -6,6 +6,7 @@ require "./lib/form" require "./lib/history" require "./lib/scheduler" +require "fileutils" set :environment, :production #set :environment, :development