diff --git a/.idea/workspace.xml b/.idea/workspace.xml index b5cbae7..ce436cf 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,15 +2,9 @@ - - - - - - - - - + + + @@ -34,17 +28,6 @@ - - - - - - - - - - - @@ -108,19 +91,28 @@ - + - + - - + + - + + + + + + + + + + @@ -168,6 +160,7 @@ @@ -416,6 +409,16 @@ + + + + + @@ -520,8 +526,8 @@ - - + + @@ -533,7 +539,7 @@ - + @@ -583,11 +589,6 @@ - - - - - @@ -622,7 +623,7 @@ - + @@ -687,7 +688,21 @@ - + + + + + + + + + + + + + + + diff --git a/Procfile b/Procfile index 6f86b16..d1913eb 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: node server.js \ No newline at end of file +web: node web.js \ No newline at end of file diff --git a/npm-debug.log b/npm-debug.log deleted file mode 100644 index 7168338..0000000 --- a/npm-debug.log +++ /dev/null @@ -1,21 +0,0 @@ -0 info it worked if it ends with ok -1 verbose cli [ 'node', '/usr/local/bin/npm', 'update', 'yo', '-g' ] -2 info using npm@1.3.15 -3 info using node@v0.10.22 -4 info outdated updating undefined -5 error Failed to parse json -5 error Unexpected token < -6 error File: /usr/local/lib/node_modules/generator-angular-cms/package.json -7 error Failed to parse package.json data. -7 error package.json must be actual JSON, not just JavaScript. -7 error -7 error This is not a bug in npm. -7 error Tell the package author to fix their package.json file. JSON.parse -8 error System Darwin 13.0.0 -9 error command "node" "/usr/local/bin/npm" "update" "yo" "-g" -10 error cwd /WWW/Learning_Yeoman/angular-cms -11 error node -v v0.10.22 -12 error npm -v 1.3.15 -13 error file /usr/local/lib/node_modules/generator-angular-cms/package.json -14 error code EJSONPARSE -15 verbose exit [ 1, true ] diff --git a/package.json b/package.json index 933c6a9..da9c701 100755 --- a/package.json +++ b/package.json @@ -12,7 +12,8 @@ "mongodb": "~1.3.19", "express": "~3.4.6", "connect": "~2.11.2", - "request": "https://registry.npmjs.org/request/-/request-2.0.5.tgz" + "request": "https://registry.npmjs.org/request/-/request-2.0.5.tgz", + "logfmt": "~0.18.1" }, "devDependencies": { "grunt": "~0.4.2", diff --git a/web.js b/web.js new file mode 100644 index 0000000..a077a70 --- /dev/null +++ b/web.js @@ -0,0 +1,16 @@ +// web.js +var express = require("express"); +var logfmt = require("logfmt"); +var app = express(); + +app.use(logfmt.requestLogger()); +app.use(express.static(__dirname + '/dist')); +app.use('/', express.directory('/dist')); +app.get('/', function(req, res) { + +}); + +var port = process.env.PORT || 5000; +app.listen(port, function() { + console.log("Listening on " + port); +}); \ No newline at end of file