Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Add a Heroku button!

  • Loading branch information...
jroes committed Nov 26, 2014
1 parent 292705c commit 2a26ad761a816cb555a0b29a3fe8fec21ee241c0
Showing with 15 additions and 3 deletions.
  1. +8 −2 README.md
  2. +6 −0 app.json
  3. +1 −1 index.js
@@ -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
@@ -0,0 +1,6 @@
{
"name": "charted",
"description": "A charting library from Medium",
"repository": "https://github.com/mikesall/charted",
"keywords": ["node", "express", "static", "charts"]
}
@@ -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

0 comments on commit 2a26ad7

Please sign in to comment.
You can’t perform that action at this time.