|
|
@ -92,7 +92,7 @@ namespace :mastodon do
|
|
|
|
prompt.ok 'Database configuration works! 🎆'
|
|
|
|
prompt.ok 'Database configuration works! 🎆'
|
|
|
|
db_connection_works = true
|
|
|
|
db_connection_works = true
|
|
|
|
break
|
|
|
|
break
|
|
|
|
rescue StandardError => e
|
|
|
|
rescue => e
|
|
|
|
prompt.error 'Database connection could not be established with this configuration, try again.'
|
|
|
|
prompt.error 'Database connection could not be established with this configuration, try again.'
|
|
|
|
prompt.error e.message
|
|
|
|
prompt.error e.message
|
|
|
|
break unless prompt.yes?('Try again?')
|
|
|
|
break unless prompt.yes?('Try again?')
|
|
|
@ -132,7 +132,7 @@ namespace :mastodon do
|
|
|
|
redis.ping
|
|
|
|
redis.ping
|
|
|
|
prompt.ok 'Redis configuration works! 🎆'
|
|
|
|
prompt.ok 'Redis configuration works! 🎆'
|
|
|
|
break
|
|
|
|
break
|
|
|
|
rescue StandardError => e
|
|
|
|
rescue => e
|
|
|
|
prompt.error 'Redis connection could not be established with this configuration, try again.'
|
|
|
|
prompt.error 'Redis connection could not be established with this configuration, try again.'
|
|
|
|
prompt.error e.message
|
|
|
|
prompt.error e.message
|
|
|
|
break unless prompt.yes?('Try again?')
|
|
|
|
break unless prompt.yes?('Try again?')
|
|
|
@ -417,7 +417,7 @@ namespace :mastodon do
|
|
|
|
mail = ActionMailer::Base.new.mail to: send_to, subject: 'Test', body: 'Mastodon SMTP configuration works!'
|
|
|
|
mail = ActionMailer::Base.new.mail to: send_to, subject: 'Test', body: 'Mastodon SMTP configuration works!'
|
|
|
|
mail.deliver
|
|
|
|
mail.deliver
|
|
|
|
break
|
|
|
|
break
|
|
|
|
rescue StandardError => e
|
|
|
|
rescue => e
|
|
|
|
prompt.error 'E-mail could not be sent with this configuration, try again.'
|
|
|
|
prompt.error 'E-mail could not be sent with this configuration, try again.'
|
|
|
|
prompt.error e.message
|
|
|
|
prompt.error e.message
|
|
|
|
break unless prompt.yes?('Try again?')
|
|
|
|
break unless prompt.yes?('Try again?')
|
|
|
|