Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/swelham/connection-test
https://github.com/swelham/connection-test
Last synced: 30 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/swelham/connection-test
- Owner: swelham
- Created: 2022-10-09T08:46:48.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-09T09:13:05.000Z (about 2 years ago)
- Last Synced: 2023-08-03T16:12:52.595Z (over 1 year ago)
- Language: Elixir
- Size: 43 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DbConnApp
Create a dyno on heroku and configure with the following buildpack
```
https://github.com/HashNuke/heroku-buildpack-elixir.git
```Set the following environment variables
```
DATABASE_URL:
POOL_SIZE: 1000
SECRET_KEY_BASE: 9pv4UnaC85c5wDxUmtrxUz/QuuKiu8232egBfk+d3PnSLJ2Sfdg+zN9ci6UQGKKf
```Note: secret key base can be anything, the above is a working example.
Deploy the app, after around 15 seconds, database connection timeouts and `send: closed` errors will start showing in the logs.