Hack hack hack...

An open journal-- some of it written for you, but most of it is for me.

Heroku Deployment

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Initialize the repository
$ git init

# Add new files to the repo
$ git add .

# See the status
$ git status

# Commit the changes with the commit message "testing"
$ git commit -m "testing"

# Create a new Heroku app
$ heroku create

# Rename the Heroku app
# Example: $ heroku rename tom-messages
$ heroku rename <name of url>

# Add a (free) PostgreSQL database to your app
$ heroku addons:add heroku-postgresql

# See the details of your new database
$ heroku pg:info

# Promote your new database to the "DATABASE_URL" global constant
# Example: $ heroku pg:promote HEROKU_POSTGRESQL_BRONZE_URL
$ heroku pg:promote <YOUR_HEROKU_URL>

# Push your repo to Heroku, start your app
$ git push heroku master

# Open the app in your browser
$ heroku open

# See your app's log, keep the stream open by using "--tail"
$ heroku logs --tail

# Set up the database for first use, running "DataMapper.auto_migrate!"
# Example: $ http://ajonas.herokuapp.com/reset
$ http://<project-name>.herokuapp.com/reset

# See your messages!
# Example: $ http://ajonas.herokuapp.com
$ http://<project-name>-messages.herokuapp.com

Comments