-
-
Save benphelps/c4fa53fd655de302e936860d254dd788 to your computer and use it in GitHub Desktop.
Cloud66 Basic Postgres
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POSTGRES_USER=phelps | |
POSTGRES_PASS=phelps | |
POSTGRES_HOST=localhost |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/database.yml | |
default: &default | |
encoding: UTF8 | |
adapter: postgresql | |
pool: 10 | |
host: <%= ENV["POSTGRES_HOST"] %> | |
username: <%= ENV["POSTGRES_USER"] %> | |
password: <%= ENV["POSTGRES_PASS"] %> | |
development: | |
<<: *default | |
database: development | |
production: | |
<<: *default | |
database: production | |
test: | |
<<: *default | |
database: test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .cloud66/manifest.yml | |
production: | |
environment_variables: | |
POSTGRES_HOST: _env(POSTGRESQL_ADDRESS) | |
POSTGRES_PASS: _env(POSTGRESQL_PASSWORD) | |
POSTGRES_USER: _env(POSTGRESQL_USERNAME) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment