-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Detect Heroku deployment, remove psql requirement
This update sets up some settings to be adaptive based on whether an app is deployed on Heroku, which is inferred from the environment variable "ON_HEROKU" being set to "true". This simplifies development setup a bit: Django's default SQLite can be used to run locally.
- Loading branch information
Showing
5 changed files
with
46 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,17 @@ | ||
DATABASE_URL=postgres:///myurl | ||
################################ | ||
# # | ||
# THIS IS A SECRET FILE!!! # | ||
# # | ||
# Do not add your .env to git! # | ||
# # | ||
################################ | ||
|
||
# SECRET_KEY encrypts things. In production it should be a random string. | ||
SECRET_KEY=mysecretshouldnotbeongit | ||
|
||
# Set DATABASE_URL to use something other than the default SQLite. | ||
# DATABASE_URL=postgres:///myurl | ||
|
||
# Set Open Humans project CLIENT_ID and CLIENT_SECRET. | ||
OH_CLIENT_ID=myclientidshouldnotbeongit | ||
OH_CLIENT_SECRET=myclientsecretshouldnotbeongit |
This file contains 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
This file contains 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
This file contains 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
This file contains 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