-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds Heroku support and env config support
bumps version to 3.3.5 and syncs all sub-repositories adds heroku button to README adds app.json Heroku Configuration file adds heroku-postbuild script to main package.json adds start script to main package.json adds engines to main package.json upgrades obojobo-express config to support loading config vars from ENV adds support for Heroku's DATABASE_URL env var for database configuration adds support for default config options removes need for hostname config
- Loading branch information
Showing
18 changed files
with
213 additions
and
69 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
workspaces-experimental true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"name": "Obojobo Next", | ||
"description": "Run Obojobo Next on Heroku", | ||
"keywords": [ | ||
"education", | ||
"edtech", | ||
"obojobo", | ||
"openedu", | ||
"open education", | ||
"learning" | ||
], | ||
"website": "https://ucfopen.github.io/Obojobo-Docs/", | ||
"logo": "https://ucfopen.github.io/Obojobo-Docs/assets/images/obojobo_white.svg", | ||
"success_url": "/firstrun", | ||
"scripts": { | ||
"postdeploy": "cd node_modules/obojobo-document-engine && yarn build && cd ../obojobo-express && yarn db:migrateup" | ||
}, | ||
"env": { | ||
"OBO_LTI_SECRET": { | ||
"description": "LTI Secret used for default key 'obo-next-production-lit-key'", | ||
"generator": "secret" | ||
}, | ||
"OBO_COOKIE_SECRET": { | ||
"description": "Secret string used to encrypt cookie data", | ||
"generator": "secret" | ||
}, | ||
"DEBUG": { | ||
"description": "Select which logs to write to the error log", | ||
"value": "obojobo_server:error,obojobo_server:warn" | ||
}, | ||
"YARN_PRODUCTION": { | ||
"description": "Makes sure yarn install includes dev dependencies", | ||
"value": "false" | ||
} | ||
}, | ||
"formation": { | ||
"web": { | ||
"quantity": 1, | ||
"size": "free" | ||
} | ||
}, | ||
"image": "heroku/nodejs", | ||
"addons": [ | ||
{ | ||
"plan": "heroku-postgresql:hobby-dev", | ||
"options": { | ||
"version": "9.6" | ||
} | ||
} | ||
], | ||
"buildpacks": [ | ||
{ | ||
"url": "heroku/nodejs" | ||
} | ||
], | ||
"environments": {} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
{ | ||
"development": { | ||
"excludeModules":[] | ||
}, | ||
"production": { | ||
"default": { | ||
"excludeModules":[] | ||
} | ||
} |
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,19 +1,23 @@ | ||
{ | ||
"development": { | ||
"hostname": "127.0.0.1:8080", | ||
"cookieSecret": "REPLACE_ME_WITH_YOUR_SECRET", | ||
"default": { | ||
"cookieName": "obo_next", | ||
"secureCookie": false, | ||
"secureCookie": true, | ||
"bodyParser": { | ||
"jsonOptions": { | ||
"limit": "1mb" | ||
"limit": "2mb" | ||
}, | ||
"textOptions": { | ||
"limit": "1mb" | ||
"limit": "2mb" | ||
}, | ||
"urlencodedOptions": { | ||
"extended": false | ||
} | ||
} | ||
}, | ||
"development": { | ||
"cookieSecret": "REPLACE_ME_WITH_YOUR_SECRET" | ||
}, | ||
"production": { | ||
"cookieSecret": {"ENV": "OBO_COOKIE_SECRET"} | ||
} | ||
} |
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,8 +1,12 @@ | ||
{ | ||
"development":{ | ||
"keys":{ | ||
"testkey": "testsecret", | ||
"key2": "secret2" | ||
"testkey": "testsecret" | ||
} | ||
}, | ||
"production":{ | ||
"keys":{ | ||
"obo-next-production-lti-key": {"ENV": "OBO_LTI_SECRET"} | ||
} | ||
} | ||
} |
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
Oops, something went wrong.