Setup Heroku

This commit is contained in:
Stephen James
2014-04-15 12:39:34 -04:00
committed by Alex Vernacchia
parent 80f4326b13
commit 16589bf9a5
6 changed files with 21 additions and 4 deletions

5
.gitignore vendored
View File

@@ -16,4 +16,7 @@ validation-status.json
SAUCE_API_KEY.yml
# Editors / IDEs
.idea
.idea
# node_module cache for TravisCI, etc.
node_modules.tar.gz

View File

@@ -2,7 +2,7 @@ language: node_js
node_js:
- 0.10
before_install:
- time wget http://fuelux-dev.herokuapp.com/node_modules.tar.gz
- time wget http://fuelux-dev.herokuapp.com/dev/node_modules.tar.gz
- time tar -zxf node_modules.tar.gz
- chmod +x ./node_modules
install:

1
Procfile Normal file
View File

@@ -0,0 +1 @@
web: node devserver.js

7
devserver.js Normal file
View File

@@ -0,0 +1,7 @@
var util = require('util'),
connect = require('connect'),
port = 9000;
connect.createServer(connect.static(__dirname)).listen(process.env.PORT || port);
util.puts('Listening on ' + (process.env.PORT || port) + '...');
util.puts('Press Ctrl + C to stop.');

View File

@@ -21,14 +21,16 @@
"url": "https://github.com/ExactTarget/fuelux/blob/master/COPYING"
},
"engines": {
"node": ">= 0.10.0"
"node": "~0.10.0"
},
"scripts": {
"main": "devserver.js",
"postinstall": "./node_modules/bower/bin/bower install && tar -zcf dev/node_modules.tar.gz node_modules/;",
"test": "grunt travisci"
},
"devDependencies": {
"bower": "~1.3.1",
"grunt": "~0.4.2",
"grunt": "~0.4.5",
"grunt-banner": "~0.2.2",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-compress": "~0.5.0",
@@ -62,5 +64,9 @@
"dependencies": {
"moment": "http://momentjs.com/downloads/moment-with-langs.js"
}
},
"dependencies": {
"connect": "~2.14.4",
"bower": "~1.3.2"
}
}