Skip to content

Commit 4bb6543

Browse files
authored
add tip to set LUCKY_ENV to production (#1896)
* add tip to set LUCKY_ENV to production * improve raise error of watcher's config file
1 parent 83f3623 commit 4bb6543

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/lucky/server_settings.cr

+9-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,15 @@ module Lucky::ServerSettings
4040
if File.exists?(YAML_SETTINGS_PATH)
4141
File.read YAML_SETTINGS_PATH
4242
else
43-
raise "Expected config file for the watcher at #{YAML_SETTINGS_PATH}"
43+
<<-ERROR
44+
Expected config file for the watcher at #{YAML_SETTINGS_PATH}.
45+
46+
Try this...
47+
48+
▸ If this is Production, be sure to set LUCKY_ENV=production
49+
▸ If this is Development, ensure the #{YAML_SETTINGS_PATH} file exists
50+
51+
ERROR
4452
end
4553
end
4654
end

0 commit comments

Comments
 (0)