-
Notifications
You must be signed in to change notification settings - Fork 0
Heroku useful command list
Yohei Yamaguchi edited this page May 21, 2016
·
2 revisions
Add the config below to your .git/config
.
[remote "heroku"]
url = https://git.heroku.com/line-shift-bot.git
fetch = +refs/heads/*:refs/remotes/heroku/*
Then, you can access to heroku with git.
// check the latest part of the log.
$ heroku logs
// tail the log
$ heroku logs -t
// Preparation: You need to install Postgre SQL in your dev env.
$ brew install postgresql
// login to pg
$ heroku pg:psql
// edit create.sql
$ vim db/create.sql
// Apply DDL to the database
$ heroku pg:psql < db/create.sql
// Please add test fixture after updating DDL because tables are dropped by applying create.sql
$ heroku pg:psql < db/testData.sql
$ git push heroku <your_branch>
$ git push heroku <your_branch>:master -f
Please ask Kai to add you to collaborators of heroku app.
$ heroku logs
▸ You do not have access to the app line-shift-bot.