Browse Source

mv config

windhamdavid 8 years ago
parent
commit
505a008054
4 changed files with 19 additions and 1 deletions
  1. 0 0
      build.js
  2. 0 0
      config.json
  3. 3 1
      package.json
  4. 16 0
      server.js

+ 0 - 0
build.js


+ 0 - 0
config.json


+ 3 - 1
package.json

@@ -19,9 +19,11 @@
   },
   "dependencies": {
 	"gulp": "^3.9.0",
+	"express": "^4.13.3",
 	"metalsmith-serve": "^0.0.4",
 	"metalsmith-watch": "^1.0.1",
-	"metalsmith-templates": "^0.7.0",
+	"metalsmith-layouts":"^1.4.2",
+	"metalsmith-in-place":"^1.3.2",
 	"metalsmith-permalinks": "^0.1.1",
 	"metalsmith": "^2.1.0"
   }

+ 16 - 0
server.js

@@ -0,0 +1,16 @@
+var build = require('./build');
+var express = require('express');
+var app = express();
+
+var config = require('./env.json')[process.env.NODE_ENV || 'development'];
+
+var env = process.env.NODE_ENV || 'development';
+if ('development' == env) {
+   
+}
+app.use(express.static(__dirname + '/build'));
+
+app.listen(process.env.PORT, function(){
+  console.log('Server running at http://localhost:' + process.env.PORT + '');
+});
+