about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-12-21 22:11:27 +0100
committerGitHub <noreply@github.com>2020-12-21 22:11:27 +0100
commit81f4c550b2ed305f39f344d10289b38625f70bf7 (patch)
tree8cd8f0b68c26bb46e14b20484b828df1159363a5 /config
parent61d5744dcc33d4cfdd26a38af138a4a416a93868 (diff)
parent38bfaf885543f349e88bb18edbc3536cefc0701c (diff)
Merge pull request #1480 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'config')
-rw-r--r--config/boot.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/boot.rb b/config/boot.rb
index f3e36203a..6cde5319d 100644
--- a/config/boot.rb
+++ b/config/boot.rb
@@ -1,3 +1,8 @@
+unless ENV.key?('RAILS_ENV')
+  STDERR.puts 'ERROR: Missing RAILS_ENV environment variable, please set it to "production", "development", or "test".'
+  exit 1
+end
+
 ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
 
 require 'bundler/setup' # Set up gems listed in the Gemfile.