[#260] One click deploy to heroku (#275)

* [#260] One click deploy to heroku

* Added app.json file for Heroku deployment
* Made changes in Procfile to accept the PORT as env variable
* Added the one click button in README.md

* Change readme and link

* Alignment of button in Readme

* Changing redis to free plan

* Removed node-js build-pack

* Changed the post-deploy script to be rake db:migrate

* Removed web concurrency variable from app.json for heroku

* Changed the link to chatwoot logo referenced in app.json

* Changed postdeploy hook

* Changed logo to be raw content from github

* Changed the SMTP variables

* Added optional conditional for sending mail
* Changed the naming of SMTP variables

* Having logo as base 64 encoded image for heroku deploy page

* Fixed key not found error for SMTP variables

* Correcting the specs for conversation assignment mailer

* Spec rubocop fixes

* Spec rubocop fixes
* Added the link to master for heroku app.json
This commit is contained in:
Sony Mathew
2019-11-24 17:19:14 +05:30
committed by GitHub
parent b6186e93e7
commit 70e4cc08b6
9 changed files with 84 additions and 13 deletions

View File

@@ -58,10 +58,10 @@ Rails.application.configure do
config.action_mailer.perform_caching = false
config.action_mailer.default_url_options = { :host => ENV['FRONTEND_URL'] }
config.action_mailer.smtp_settings = {
:address => ENV['SES_ADDRESS'],
:address => ENV['SMTP_ADDRESS'],
:port => 587,
:user_name => ENV["SES_USERNAME"],
:password => ENV["SES_PASSWORD"],
:user_name => ENV["SMTP_USERNAME"],
:password => ENV["SMTP_PASSWORD"],
:authentication => :login,
:enable_starttls_auto => true
}

View File

@@ -58,10 +58,10 @@ Rails.application.configure do
config.action_mailer.perform_caching = false
config.action_mailer.default_url_options = { host: ENV['FRONTEND_URL'] }
config.action_mailer.smtp_settings = {
address: ENV['SES_ADDRESS'],
address: ENV['SMTP_ADDRESS'],
port: 587,
user_name: ENV['SES_USERNAME'], # Your SMTP user
password: ENV['SES_PASSWORD'], # Your SMTP password
user_name: ENV['SMTP_USERNAME'], # Your SMTP user
password: ENV['SMTP_PASSWORD'], # Your SMTP password
authentication: :login,
enable_starttls_auto: true
}