Skip to content
This repository has been archived by the owner on Nov 14, 2018. It is now read-only.

Commit

Permalink
Add a Heroku button!
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Roes committed Dec 5, 2014
1 parent 292705c commit 2a26ad7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,14 @@ To try Charted out, simply download the repo and run `npm install`
to install dependencies. After that you will be able to run
`npm start`. This will start a server at localhost:3000.

### On Heroku

[![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy?template=https://github.com/mikesall/charted)

### With Docker

You can also run Charted via _docker_ by running
`docker build -t charted .` in the repo to build the container. You
will them be able to run the container using
`docker run -p 3000:3000 charted`. Server will be accessible at
will then be able to run the container using
`docker run -p 3000:3000 charted`. Server will be accessible at
localhost:3000
6 changes: 6 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "charted",
"description": "A charting library from Medium",
"repository": "https://github.com/mikesall/charted",
"keywords": ["node", "express", "static", "charts"]
}
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ app.get('/get', function (req, res) {

app.use(express.static('pub'))

var server = app.listen(3000, function () {
var server = app.listen(process.env.PORT || 3000, function () {
var host = server.address().address
var port = server.address().port

Expand Down

0 comments on commit 2a26ad7

Please sign in to comment.