mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 17:06:31 -06:00
DEV: prevents rake emoji:update
to run on prod (#21594)
This task is only designed to help generate a pull request to update official emoji images. It should never be run directly on production.
This commit is contained in:
parent
338bd13213
commit
0b4e14aa74
@ -277,6 +277,8 @@ end
|
||||
|
||||
desc "update emoji images"
|
||||
task "emoji:update" do
|
||||
abort("This task can't be run on production.") if Rails.env.production?
|
||||
|
||||
copy_emoji_db
|
||||
|
||||
json_db = File.read(File.join(GENERATED_PATH, "db.json"))
|
||||
|
Loading…
Reference in New Issue
Block a user