mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-04 01:15:12 +01:00
Change mastodon:webpush:generate_vapid_key task to not require functional env (#17338)
Fixes #17297
This commit is contained in:
parent
df68d2eab8
commit
bf005edd30
@ -441,7 +441,7 @@ namespace :mastodon do
|
|||||||
|
|
||||||
namespace :webpush do
|
namespace :webpush do
|
||||||
desc 'Generate VAPID key'
|
desc 'Generate VAPID key'
|
||||||
task generate_vapid_key: :environment do
|
task :generate_vapid_key do
|
||||||
vapid_key = Webpush.generate_key
|
vapid_key = Webpush.generate_key
|
||||||
puts "VAPID_PRIVATE_KEY=#{vapid_key.private_key}"
|
puts "VAPID_PRIVATE_KEY=#{vapid_key.private_key}"
|
||||||
puts "VAPID_PUBLIC_KEY=#{vapid_key.public_key}"
|
puts "VAPID_PUBLIC_KEY=#{vapid_key.public_key}"
|
||||||
|
Loading…
Reference in New Issue
Block a user