Skip to content

Commit

Permalink
Check SIMPLE_SERVER_ENV to ensure we are running in security env (#5253)
Browse files Browse the repository at this point in the history
  • Loading branch information
govindkrjoshi authored Aug 29, 2023
1 parent 09b4b0f commit 0f20bee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/prepare_security_environment.rake
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
desc "Prepare security environment with necesssary data setup, and print audit prerequisites"
task prepare_security_environment: :environment do
abort "This task can only be run in development or security environments!" unless Rails.env.development? || Rails.env.security?
abort "This task can only be run in development or security environments!" unless Rails.env.development? || ENV.fetch("SIMPLE_SERVER_ENV") == "security"

# Feature flags
Flipper.disable(:auto_approve_users)
Expand Down

0 comments on commit 0f20bee

Please sign in to comment.