New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optionally use environment variables with a database URL to configure mi... #784

Merged
merged 2 commits into from Aug 17, 2013

Conversation

3 participants
@zkat

zkat commented Jul 23, 2013

...grations

The following config/config.json would work with heroku:

{
    "development": {
        "username":"username",
        "password":"password",
        "database":"db",
        "host":"127.0.0.1",
        "dialect":"postgres",
        "protocol":"postgres"
    },
    "production": {
        "use_env_variable": "DATABASE_URL",
    }
}

Provided you've set up the database and configured NODE_ENV=production on heroku.

@sdepold

This comment has been minimized.

Member

sdepold commented Aug 3, 2013

would you mind rebasing your PR ?

@zkat

This comment has been minimized.

zkat commented Aug 13, 2013

Done. :)

@sdepold sdepold merged commit 6691524 into sequelize:master Aug 17, 2013

1 check passed

default The Travis CI build passed
Details
@coveralls

This comment has been minimized.

coveralls commented Nov 3, 2014

Coverage Status

Changes Unknown when pulling 6691524 on sykopomp:master into * on sequelize:master*.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment