mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 10:08:20 -05:00
8 lines
219 B
Ruby
8 lines
219 B
Ruby
desc "generate api key if missing, return existing if already there"
|
|
task "api_key:get" => :environment do
|
|
if SiteSetting.api_key.blank?
|
|
SiteSetting.generate_api_key!
|
|
end
|
|
|
|
puts SiteSetting.api_key
|
|
end
|