Skip to content
This repository has been archived by the owner on Mar 18, 2021. It is now read-only.

Here's how to fix your Heroku app (SSL) #959

Open
Eddydpyl opened this issue Mar 14, 2021 · 2 comments
Open

Here's how to fix your Heroku app (SSL) #959

Eddydpyl opened this issue Mar 14, 2021 · 2 comments

Comments

@Eddydpyl
Copy link

My Heroku instance suddenly stopped accepting connections to the DB without an SSL certificate, and so my application stopped working. Just in case someone else bumps into this problem, here's what I did:

  • Update your pubspec.yaml to point to this repo instead of the latest version of Aqueduct. Props to NayanJD for his pull request. Remember to add a dependency_overrides section. You might also need to set publish_to to none.
  • In the channel.dart file, the one inside of your own project, within the contextWithConnectionInfo method, set the useSSL option in the PostgreSQLPersistentStore constructor to true.
  • Add the --use-ssl option to the release command in Procfile.
@marciotrix77
Copy link

Thank you very much. I had the same problem and your issue saved me.

In my case, I followed the guidelines of the last two items of your solution.

I just don't know how to point pubspech.yaml to a specific repo. If you can guide me, I thank you.

Best regards.

@Eddydpyl
Copy link
Author

Eddydpyl commented Mar 16, 2021

Happy to help. Here's part of my pubspec:

publish_to: none

environment:
  sdk: ">=2.0.0 <3.0.0"

dependencies:
  aqueduct:
    git:
      url: git://github.com/darter/aqueduct.git
      path: aqueduct

dev_dependencies:
  aqueduct_test: ^1.0.0

dependency_overrides:
  aqueduct: 3.3.0+1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants