-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from iturgeon/issue/47-heroku-deployable
Issue/47 heroku deployable Please see the release notes before using.
- Loading branch information
Showing
1,012 changed files
with
719 additions
and
397 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,3 +1,3 @@ | ||
{ | ||
"directory": "assets/js/vendor" | ||
"directory": "public/assets/js/vendor" | ||
} |
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,2 @@ | ||
https://github.com/heroku/heroku-buildpack-nodejs | ||
https://github.com/heroku/heroku-buildpack-php |
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,51 @@ | ||
## Deploy on Heroku | ||
|
||
1. `git clone [email protected]:ucfcdl/UDOIT.git` to grab a copy of the git repo | ||
2. `heroku create` will set up a Heroku project | ||
3. `heroku addons:create heroku-postgresql:hobby-dev` add a database addon | ||
4. `heroku buildpacks:set https://github.com/heroku/heroku-buildpack-multi` may be required | ||
5. `git push heroku master:master` will build build the server using our master branch | ||
6. set up the Heroku config variables below | ||
|
||
## Configure | ||
Set Heroku config variables using `heroku config:set VAR=value1` | ||
|
||
* `CONSUMER_KEY` - LTI consumer key entered when adding UDOIT LTI to Canvas | ||
* `SHARED_SECRET` - LTI secret entered when adding UDOIT LTI to Canvas | ||
* `OAUTH2_ID` - from the developer api key created by your admin | ||
* `OAUTH2_KEY` - from the developer api key created by your admin | ||
* `OAUTH2_URI` - full url to your oauth2responce.php - EX: `https://your.herokuapp.com/oauth2response.php` | ||
* `GOOGLE_API_KEY` - add a google api key for youtube video support | ||
* `USE_HEROKU_CONFIG` - set to `true` to enable the Heroku configuration | ||
|
||
## Create Database Tables | ||
You'll need to have postgresql installed on your own system to connect to the Heroku postgresql database. | ||
|
||
* `heroku pg:psql` will open a psql connection to the remote Heroku database | ||
* copy and paste the postgresql table schemeas for the users and reports table into the prompt | ||
* `\dt` will show you a list of the tables you just created | ||
* `\q` quits the psql terminal | ||
|
||
```sql | ||
/* postgresql */ | ||
CREATE TABLE reports ( | ||
id SERIAL PRIMARY KEY, | ||
user_id integer, | ||
course_id integer, | ||
file_path text, | ||
date_run bigint, | ||
errors integer, | ||
suggestions integer | ||
); | ||
``` | ||
|
||
### Users Table | ||
|
||
```sql | ||
/* postgresql */ | ||
CREATE TABLE users ( | ||
id integer CONSTRAINT users_pk PRIMARY KEY, | ||
api_key varchar(255), | ||
date_created integer | ||
); | ||
``` |
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 @@ | ||
web: vendor/bin/heroku-php-apache2 -F phpfpm_custom.conf public/ |
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,60 @@ | ||
{ | ||
"name": "UDOIT", | ||
"description": "The Universal Design Online content Inspection Tool, or UDOIT identifies and fixes accessibility issues in Canvas by Instructure.", | ||
"keywords": [ | ||
"education", | ||
"canvas", | ||
"CDL", | ||
"EDU", | ||
"UCF", | ||
"Instructure", | ||
"508" | ||
], | ||
"website": "http://online.ucf.edu/teach-online/resources/udoit/", | ||
"repository": "https://github.com/ucfcdl/UDOIT", | ||
"success_url": "/", | ||
"env": { | ||
"CONSUMER_KEY": { | ||
"description": "LTI consumer key entered when adding UDOIT LTI to Canvas", | ||
"generator": "secret" | ||
}, | ||
"SHARED_SECRET": { | ||
"description": "LTI secret entered when adding UDOIT LTI to Canvas", | ||
"generator": "secret" | ||
}, | ||
"OAUTH2_ID": { | ||
"description": "Oauth ID from the developer api key created by your admin", | ||
"generator": "secret" | ||
}, | ||
"OAUTH2_KEY": { | ||
"description": "Oauth Key from the developer api key created by your admin", | ||
"generator": "secret" | ||
}, | ||
"OAUTH2_URI": { | ||
"description": "Full url to your oauth2responce.php file", | ||
"value": "https://your.herokuapp.com/oauth2response.php" | ||
}, | ||
"GOOGLE_API_KEY": { | ||
"description": "add a google api key for youtube video support", | ||
"required": false | ||
}, | ||
"USE_HEROKU_CONFIG": { | ||
"description": "needed to use the Heroku configuration", | ||
"value": "true" | ||
} | ||
}, | ||
"addons": [ | ||
"heroku-postgresql:hobby-dev" | ||
], | ||
"buildpacks": [ | ||
{ | ||
"url": "https://github.com/heroku/heroku-buildpack-nodejs" | ||
}, | ||
{ | ||
"url": "https://github.com/heroku/heroku-buildpack-php" | ||
} | ||
], | ||
"scripts": { | ||
"postdeploy": "php db_pg_setup.php" | ||
} | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.