OSDN Git Service

Merge branch 'master' of git.osdn.net:/gitroot/eos/zephyr
[eos/zephyr.git] / server / app.js
old mode 100644 (file)
new mode 100755 (executable)
index 847e5e1..7f7692b
@@ -17,10 +17,16 @@ require('./routes')(app);
 // DBのコンストラクタを実行
 var DB = require('./class/DB').instance;
 DB.init()
+<<<<<<< HEAD
+//.then(function() {
+//    return DB.test2();
+//})
+=======
 /*
 .then(function() {
     return DB.test2();
 })*/
+>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6
 .then(function() {
     if(process.env.NODE_ENV === 'debug') {
         return DB.testRest();
@@ -28,6 +34,19 @@ DB.init()
 })
 .then(function() {
     var server = app.listen(config.port, config.ip, function () {
+<<<<<<< HEAD
+      /*
+      switch (req.method) {
+        case 'GET':
+        show(req, res);
+        break;
+        case 'POST':
+        upload(req, res);
+        break;
+      }
+      */
+=======
+>>>>>>> 6b2b2b88511733893d2c6e7848c389abfcd53ba6
         console.log('Zephyr listening at http://%s:%s', config.ip, config.port);
         console.log('NODE_ENV = ' + app.get('env'))
     });