Skip to content

Commit

Permalink
add tip to set LUCKY_ENV to production (#1896)
Browse files Browse the repository at this point in the history
* add tip to set LUCKY_ENV to production

* improve raise error of watcher's config file
  • Loading branch information
snadon authored Jun 15, 2024
1 parent 83f3623 commit 4bb6543
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/lucky/server_settings.cr
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,15 @@ module Lucky::ServerSettings
if File.exists?(YAML_SETTINGS_PATH)
File.read YAML_SETTINGS_PATH
else
raise "Expected config file for the watcher at #{YAML_SETTINGS_PATH}"
<<-ERROR
Expected config file for the watcher at #{YAML_SETTINGS_PATH}.
Try this...
▸ If this is Production, be sure to set LUCKY_ENV=production
▸ If this is Development, ensure the #{YAML_SETTINGS_PATH} file exists
ERROR
end
end
end

0 comments on commit 4bb6543

Please sign in to comment.