https://github.com/levicook/hello-heroku-postgres
https://github.com/levicook/hello-heroku-postgres
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/levicook/hello-heroku-postgres
- Owner: levicook
- Created: 2014-06-18T16:11:17.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-06-18T18:12:10.000Z (about 12 years ago)
- Last Synced: 2024-04-15T09:13:17.564Z (over 2 years ago)
- Language: Go
- Size: 211 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
hello-heroku-postgres
=====================
```bash
$ heroku create -b https://github.com/kr/heroku-buildpack-go.git
Creating frozen-citadel-6244... done, stack is cedar
BUILDPACK_URL=https://github.com/kr/heroku-buildpack-go.git
http://frozen-citadel-6244.herokuapp.com/ | git@heroku.com:frozen-citadel-6244.git
Git remote heroku added
$ heroku addons:add heroku-postgresql
Adding heroku-postgresql on fierce-ocean-1703... done, v7 (free)
Attached as HEROKU_POSTGRESQL_BLACK_URL
Database has been created and is available
! This database is empty. If upgrading, you can transfer
! data from another database with pgbackups:restore.
Use `heroku addons:docs heroku-postgresql` to view documentation.
$ git push heroku master
Initializing repository, done.
Counting objects: 76, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (64/64), done.
Writing objects: 100% (76/76), 57.95 KiB | 0 bytes/s, done.
Total 76 (delta 9), reused 0 (delta 0)
-----> Fetching custom git buildpack... done
-----> Go app detected
-----> Installing go1.2... done
-----> Running: godep go install -tags heroku ./...
-----> Discovering process types
Procfile declares types -> web
-----> Compressing... done, 1.9MB
-----> Launching... done, v4
http://frozen-citadel-6244.herokuapp.com/ deployed to Heroku
To git@heroku.com:frozen-citadel-6244.git
* [new branch] master -> master
$ curl -i http://frozen-citadel-6244.herokuapp.com/
HTTP/1.1 200 OK
Content-Type: text/plain; charset=utf-8
Date: Wed, 18 Jun 2014 18:11:01 GMT
Content-Length: 18
Connection: keep-alive
pg_backend_pid=762
```