Permalink
Browse files

Merge pull request #1353 from zhouyaoji/next_deploy_to_cloud

[exs] Updated `index.js` for cloud deployment, the dependencies in `package.json`, module names for mojits.
  • Loading branch information...
2 parents b07479b + 414624d commit 97a78e882158edd881d624067762684d9ca879a7 Joe Catera committed Feb 28, 2014
Showing 375 changed files with 2,088 additions and 2,370 deletions.
@@ -29,3 +29,5 @@ app.listen(app.get('port'), function () {
debug('Server listening on port ' + app.get('port') + ' ' +
'in ' + app.get('env') + ' mode');
});
+module.exports = app;
+
@@ -1,23 +1,18 @@
/*
- * Copyright (c) 2011-2013, Yahoo! Inc. All rights reserved.
- * Copyrights licensed under the New BSD License.
- * See the accompanying LICENSE file for terms.
+ * Copyright (c) 2011 Yahoo! Inc. All rights reserved.
*/
-
-
-/*jslint anon:true, sloppy:true, nomen:true, node:true*/
-
+// this file provides Manhattan integration
process.chdir(__dirname);
+var http = require('http'),
+ app = require('./app');
/**
- * @param {object} config The configuration object containing processing params.
- * @param {object} token Token used to identify the application.
+ * @token given by manhattan and used to emit that the app is ready
*/
module.exports = function(config, token) {
- var app = require('./server.js');
-
- // Signal the application is ready, providing the token and app references.
- process.emit('application-ready', token, app);
+ // send the application to Manhattan along with the token
+ process.emit("application-ready", token, http.createServer(app));
};
+
@@ -13,13 +13,17 @@
}
],
"dependencies": {
- "mojito": ">= 0.8.0",
- "ejs": "*"
+ "debug": "*",
+ "mojito": "~0.9.0"
+ },
+ "devDependencies": {
+ "ejs": "*",
+ "mojito-cli": ">= 0.2.0"
},
"engines": {
"node": ">= 0.8.0"
},
"scripts": {
- "start": "mojito start"
+ "start": "node app.js"
}
}
@@ -31,3 +31,5 @@ app.listen(app.get('port'), function () {
debug('Server listening on port ' + app.get('port') + ' ' +
'in ' + app.get('env') + ' mode');
});
+module.exports = app;
+
@@ -1,20 +1,16 @@
-/*
- * Copyright (c) 2011-2013, Yahoo! Inc. All rights reserved.
- * Copyrights licensed under the New BSD License.
- * See the accompanying LICENSE file for terms.
+opyright (c) 2011 Yahoo! Inc. All rights reserved.
*/
-
-/*jslint anon:true, sloppy:true, nomen:true*/
+// this file provides Manhattan integration
process.chdir(__dirname);
+var http = require('http'),
+ app = require('./app');
+
/**
- * @param {object} config The configuration object containing processing params.
- * @param {object} token Token used to identify the application.
+ * @token given by manhattan and used to emit that the app is ready
*/
-module.exports = function (config, token) {
- var app = require('./server.js');
-
- // Signal the application is ready, providing the token and app references.
- process.emit('application-ready', token, app);
+module.exports = function(config, token) {
+ // send the application to Manhattan along with the token
+ process.emit("application-ready", token, http.createServer(app));
};
@@ -10,12 +10,15 @@
}
],
"scripts": {
- "start": "mojito start"
+ "start": "node app.js"
},
"dependencies": {
- "mojito": ">= 0.8.0"
+ "debug": "*",
+ "mojito": "~0.9.0"
+ },
+ "devDependencies": {
+ "mojito-cli": ">= 0.2.0"
},
- "devDependencies": {},
"engines": {
"node": "*"
}
@@ -29,3 +29,5 @@ app.listen(app.get('port'), function () {
debug('Server listening on port ' + app.get('port') + ' ' +
'in ' + app.get('env') + ' mode');
});
+module.exports = app;
+
@@ -1,23 +1,17 @@
/*
- * Copyright (c) 2011-2013, Yahoo! Inc. All rights reserved.
- * Copyrights licensed under the New BSD License.
- * See the accompanying LICENSE file for terms.
+ * Copyright (c) 2011 Yahoo! Inc. All rights reserved.
*/
-
-
-/*jslint anon:true, sloppy:true, nomen:true, node:true*/
-
+// this file provides Manhattan integration
process.chdir(__dirname);
+var http = require('http'),
+ app = require('./app');
/**
- * @param {object} config The configuration object containing processing params.
- * @param {object} token Token used to identify the application.
+ * @token given by manhattan and used to emit that the app is ready
*/
module.exports = function(config, token) {
- var app = require('./server.js');
-
- // Signal the application is ready, providing the token and app references.
- process.emit('application-ready', token, app);
+ // send the application to Manhattan along with the token
+ process.emit("application-ready", token, http.createServer(app));
};
@@ -16,12 +16,15 @@
}
},
"scripts": {
- "start": "mojito start"
+ "start": "node app.js"
},
"dependencies": {
- "mojito": ">= 0.8.0"
+ "debug": "*",
+ "mojito": "~0.9.0"
+ },
+ "devDependencies": {
+ "mojito-cli": ">= 0.2.0"
},
- "devDependencies": {},
"engines": {
"node": "*"
}
@@ -26,3 +26,5 @@ app.listen(app.get('port'), function () {
debug('Server listening on port ' + app.get('port') + ' ' +
'in ' + app.get('env') + ' mode');
});
+module.exports = app;
+
@@ -1,7 +1,6 @@
[
{
"settings": [ "master" ],
- "appPort": "8666",
"specs": {}
},
{
@@ -0,0 +1,17 @@
+/*
+ * Copyright (c) 2011 Yahoo! Inc. All rights reserved.
+ */
+// this file provides Manhattan integration
+
+process.chdir(__dirname);
+
+var http = require('http'),
+ app = require('./app');
+
+/**
+ * @token given by manhattan and used to emit that the app is ready
+ */
+module.exports = function(config, token) {
+ // send the application to Manhattan along with the token
+ process.emit("application-ready", token, http.createServer(app));
+};
@@ -12,9 +12,16 @@
"email": "nobody@yahoo-inc.com"
}
],
+ "scripts": {
+ "start": "node app.js"
+ },
"dependencies": {
- "mojito": "~0.8.x"
+ "debug": "*",
+ "mojito": "~0.9.0"
},
+ "devDependencies": {
+ "mojito-cli": ">= 0.2.0"
+ },
"engines": {
"node": ">0.8.0"
}
@@ -29,3 +29,5 @@ app.listen(app.get('port'), function () {
debug('Server listening on port ' + app.get('port') + ' ' +
'in ' + app.get('env') + ' mode');
});
+module.exports = app;
+
@@ -1,7 +1,6 @@
[
{
"settings": [ "master" ],
- "appPort": "8666",
"specs": {
"github": {
"type": "Github",
@@ -0,0 +1,17 @@
+/*
+ * Copyright (c) 2011 Yahoo! Inc. All rights reserved.
+ */
+// this file provides Manhattan integration
+
+process.chdir(__dirname);
+
+var http = require('http'),
+ app = require('./app');
+
+/**
+ * @token given by manhattan and used to emit that the app is ready
+ */
+module.exports = function(config, token) {
+ // send the application to Manhattan along with the token
+ process.emit("application-ready", token, http.createServer(app));
+};
@@ -12,8 +12,15 @@
"email": "nobody@yahoo-inc.com"
}
],
+ "scripts": {
+ "start": "node app.js"
+ },
"dependencies": {
- "mojito": "~0.8.0"
+ "debug": "*",
+ "mojito": "~0.9.0"
+ },
+ "devDependencies": {
+ "mojito-cli": ">= 0.2.0"
},
"engines": {
"node": ">0.8"
@@ -29,3 +29,5 @@ app.listen(app.get('port'), function () {
debug('Server listening on port ' + app.get('port') + ' ' +
'in ' + app.get('env') + ' mode');
});
+module.exports = app;
+
@@ -1,7 +1,6 @@
[
{
"settings": [ "master" ],
- "appPort": "8666",
"specs": {
"tribframe": {
"type": "HTMLFrameMojit",
@@ -0,0 +1,17 @@
+/*
+ * Copyright (c) 2011 Yahoo! Inc. All rights reserved.
+ */
+// this file provides Manhattan integration
+
+process.chdir(__dirname);
+
+var http = require('http'),
+ app = require('./app');
+
+/**
+ * @token given by manhattan and used to emit that the app is ready
+ */
+module.exports = function(config, token) {
+ // send the application to Manhattan along with the token
+ process.emit("application-ready", token, http.createServer(app));
+};
@@ -12,10 +12,18 @@
"email": "nobody@yahoo-inc.com"
}
],
+ "scripts": {
+ "start": "node app.js"
+ },
"dependencies": {
- "mojito": "~0.8.0"
+ "debug": "*",
+ "mojito": "~0.9.0"
+ },
+ "devDependencies": {
+ "mojito-cli": ">= 0.2.0"
},
"engines": {
"node": ">0.8"
}
}
+
@@ -29,3 +29,5 @@ app.listen(app.get('port'), function () {
debug('Server listening on port ' + app.get('port') + ' ' +
'in ' + app.get('env') + ' mode');
});
+module.exports = app;
+
@@ -1,7 +1,6 @@
[
{
"settings": [ "master" ],
- "appPort": "8666",
"specs": {
"tribframe": {
"type": "HTMLFrameMojit",
@@ -0,0 +1,17 @@
+/*
+ * Copyright (c) 2011 Yahoo! Inc. All rights reserved.
+ */
+// this file provides Manhattan integration
+
+process.chdir(__dirname);
+
+var http = require('http'),
+ app = require('./app');
+
+/**
+ * @token given by manhattan and used to emit that the app is ready
+ */
+module.exports = function(config, token) {
+ // send the application to Manhattan along with the token
+ process.emit("application-ready", token, http.createServer(app));
+};
@@ -12,10 +12,18 @@
"email": "nobody@yahoo-inc.com"
}
],
+ "scripts": {
+ "start": "node app.js"
+ },
"dependencies": {
- "mojito": "~0.8.0"
+ "debug": "*",
+ "mojito": "~0.9.0"
+ },
+ "devDependencies": {
+ "mojito-cli": ">= 0.2.0"
},
"engines": {
"node": ">0.8.0"
}
}
+
@@ -29,3 +29,5 @@ app.listen(app.get('port'), function () {
debug('Server listening on port ' + app.get('port') + ' ' +
'in ' + app.get('env') + ' mode');
});
+module.exports = app;
+
@@ -1,7 +1,6 @@
[
{
"settings": [ "master" ],
- "appPort": "8666",
"specs": {
"tribframe": {
"type": "HTMLFrameMojit",
Oops, something went wrong.

0 comments on commit 97a78e8

Please sign in to comment.