Skip to content
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

Add production settings to database.yml #64

Closed
swanson opened this issue May 10, 2013 · 4 comments
Closed

Add production settings to database.yml #64

swanson opened this issue May 10, 2013 · 4 comments

Comments

@swanson
Copy link
Collaborator

swanson commented May 10, 2013

Heroku automatically writes these, but for VPS we need to set them up.

Also update instructions for VPS to make sure it is run in prod env - not dev.

@mickstephenson
Copy link
Contributor

Since the user would have to edit the file manually to change the password and the correct user, perhaps merely explaining how to do this is the documentation would be enough.

@swanson
Copy link
Collaborator Author

swanson commented May 17, 2013

Probably best to use ENV variables for this.

From: Michael Stephenson [mailto:notifications@github.com]
Sent: Friday, May 17, 2013 1:48 PM
To: swanson/stringer
Cc: Matthew D. Swanson
Subject: Re: [stringer] Add production settings to database.yml (#64)

Since the user would have to edit the file manually to change the password and the correct user, perhaps merely explaining how to do this is the documentation would be enough.


Reply to this email directly or view it on GitHubhttps://github.com//issues/64#issuecomment-18076058.

@mickstephenson
Copy link
Contributor

Such as:

development:
  adapter: sqlite3
  database: db/stringer.sqlite

production:
  adapter:  postgresql
  database: $POSTGRES_DATABASE
  username: $POSTGRES_USER
  password: $POSTGRES_PASSWORD
  host: $POSTGRES_HOST

Then simply adding their definitions to .bash_profile as part of the vps instructions?

@swanson
Copy link
Collaborator Author

swanson commented May 29, 2013

Resolves #146

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

No branches or pull requests

2 participants