fix issue locomotivecms/heroku-instant-deploy#6: connection reset by peer raised when trying to deploy to an Engine running on Heroku
did
committed Dec 06, 2015
commit ae2f26d9a20d53fd3e9b00ce4fd2940596a264e2
Showing 3
changed files with
5 additions
and 3 deletions
generators/blank/config/deploy.yml
+2
-1
| @@ | @@ -12,4 +12,5 @@ |
| # host: www.example.com | |
| # email: john@doe.net | |
| # password: apassword | |
| - | # # api_key: <your api key here> |
| \ No newline at end of file | |
| + | # # api_key: <your api key here> |
| + | # # ssl: true |
generators/bootstrap/config/deploy.yml
+2
-1
| @@ | @@ -12,4 +12,5 @@ |
| # host: www.example.com | |
| # email: john@doe.net | |
| # password: apassword | |
| - | # # api_key: <your api key here> |
| \ No newline at end of file | |
| + | # # api_key: <your api key here> |
| + | # # ssl: true |
locomotive/wagon/commands/push_command.rb b/lib/locomotive/wagon/commands/push_command.rb
+1
-1
| @@ | @@ -100,7 +100,7 @@ module Locomotive::Wagon |
| 'handle' => site.handle, | |
| 'email' => credentials[:email], | |
| 'api_key' => credentials[:api_key] | |
| - | }) |
| + | }.tap { |options| options['ssl'] = true if api_host.ends_with?(':443') }) |
| end | |
| end | |