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:
Joffrey JAFFEUX 2023-05-16 20:46:57 +02:00 committed by GitHub
parent 338bd13213
commit 0b4e14aa74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"))