mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
correct user simulator
This commit is contained in:
@ -35,7 +35,7 @@ end
|
||||
|
||||
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
|
||||
|
||||
unless Rails.env.development?
|
||||
unless ["profile", "development"].include? Rails.env
|
||||
puts "Bad idea to run a script that inserts random posts in any non development environment"
|
||||
exit
|
||||
end
|
||||
|
Reference in New Issue
Block a user