#Term-C
Our app on Heroku:
ruby version : 2.0.0 rails version: 4.2.2
Note: As for Mac, follow the tutorials on: http://www.tunnelsup.com/setting-up-postgres-on-mac-osx
-
Install the postgres database server.
-
Create a Postgres user. However, instead of "myapp" create a user named "termc"
-
run the command:
rake db:setup
-
If all goes well, you should should be able to run the command
$rails dbconsole
=>\dt
And see the schema_migrations table
Schema | Name | Type | Owner --------+-------------------+-------+------- public | schema_migrations | table | termc (1 row)
-
View your remotes:
git remote -v
Do you see? heroku https://git.heroku.com/term-c.git (fetch) heroku https://git.heroku.com/term-c.git (push) origin [email protected]:robinsswei/Term-C.git (fetch) origin [email protected]:robinsswei/Term-C.git (push)
-
If not, add the Heroku remote: ~/667-workspace/Term-C$ heroku git:remote -a term-c
-
To deploy:
git push heroku master
App name: normal-duck-129
Instructions: https://devcenter.heroku.com/articles/facebook
Following the tutorial, I created a Facebook App which works locally. (App Name: Term-C-dev ,Site URL: http://localhost:3000/)
We still need to create another Facebook App when deploying on Heroku.
Test Users List: https://docs.google.com/spreadsheets/d/1vV0F46ov9ijSFP0OxbrY6h7mDD1CSYUyPDJHa-DAgek/edit?usp=sharing