diff options
author | Yamagishi Kazutoshi <ykzts@desire.sh> | 2017-07-14 19:13:43 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-07-14 12:13:43 +0200 |
commit | 0fa9dd85273fed7f5412b9b1be21d8db7c5ed7bb (patch) | |
tree | 39526e239e667d384c01d9bd1cde0f1bf5ffaf33 /lib | |
parent | 489d1624777d86b710bd4f467857a7e7c3bd3128 (diff) |
Add Rake task for generate VAPID key (#4195)
* Add Rake task for generate VAPID key * edit config/initializers/vapid.rb
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/mastodon.rake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/tasks/mastodon.rake b/lib/tasks/mastodon.rake index 1b05ece33..010139e91 100644 --- a/lib/tasks/mastodon.rake +++ b/lib/tasks/mastodon.rake @@ -184,6 +184,15 @@ namespace :mastodon do end end + namespace :webpush do + desc 'Generate VAPID key' + task generate_vapid_key: :environment do + vapid_key = Webpush.generate_key + puts "VAPID_PRIVATE_KEY=#{vapid_key.private_key}" + puts "VAPID_PUBLIC_KEY=#{vapid_key.public_key}" + end + end + namespace :maintenance do desc 'Update counter caches' task update_counter_caches: :environment do |