Skip to content
This repository has been archived by the owner on Jan 20, 2019. It is now read-only.

Commit

Permalink
added a Procfile to enable deploying to heroku
Browse files Browse the repository at this point in the history
Signed-off-by: Floyd Pink <imbleedingme@googlemail.com>
[ci skip]
  • Loading branch information
floydpink committed Aug 6, 2013
1 parent 65c62e4 commit daba975
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 16 deletions.
1 change: 1 addition & 0 deletions Procfile
@@ -0,0 +1 @@
web: node localServer.js
13 changes: 1 addition & 12 deletions README.md
Expand Up @@ -9,20 +9,9 @@ Check this out (from your smartphone) on the [web](http://floydpink.github.io/Tr

#### Running the app locally

To install the dependencies:
```
npm install
```

And to run the app:
```
npm start
```

Now you can open [localhost:3000](http://localhost:3000)
Run `npm install` to install the dependencies. Then run `npm start` or `foreman start` to start the app and then open [localhost:5000](http://localhost:5000)

[![githalytics.com alpha](https://cruel-carlota.gopagoda.com/2bd0aef17b95040173b8f9b367a65cf1 "githalytics.com")](http://githalytics.com/floydpink/Travis-CI-www)


[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/floydpink/Travis-CI-www/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

7 changes: 5 additions & 2 deletions localServer.js
Expand Up @@ -4,5 +4,8 @@ var connect = require('connect'),
.use(connect.logger('dev'))
.use(connect.static(__dirname));

app.listen(3000);
console.log('Listening to port 3000. Open \'http://localhost:3000\'');
var port = process.env.PORT || 5000;
app.listen(port, function() {
console.log('Listening to port %s. Open \'http://localhost:%s\'', port, port);
});

7 changes: 5 additions & 2 deletions package.json
Expand Up @@ -30,6 +30,9 @@
"url" : "https://github.com/floydpink/Travis-CI/blob/master/LICENSE"
}
],
"dependencies" : {
"connect" : "~2.8.4"
},
"devDependencies" : {
"grunt" : "~0.4.1",
"grunt-contrib-jshint" : "~0.2.0",
Expand All @@ -38,8 +41,8 @@
"grunt-git-describe" : "~2.0.0",
"grunt-targethtml" : "~0.2.2",
"grunt-contrib-cssmin" : "~0.6.0",
"connect" : "~2.8.4",
"nodemon" : "~0.7.8",
"grunt-include-replace" : "~1.1.0"
"grunt-include-replace" : "~1.1.0",
"foreman" : "~0.0.25"
}
}

0 comments on commit daba975

Please sign in to comment.