Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
Merge pull request #640 from mojit0/cleaner-startup
Browse files Browse the repository at this point in the history
Remove obsolete index.js files from application archetypes.
Remove unnecessary Manhattan startup logic from server.js files.
  • Loading branch information
mojit0 committed Oct 17, 2012
2 parents b12afb9 + a524b80 commit 434f56b
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 70 deletions.
17 changes: 0 additions & 17 deletions lib/app/archetypes/app/default/index.js

This file was deleted.

12 changes: 0 additions & 12 deletions lib/app/archetypes/app/default/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,4 @@ var app = Mojito.createServer();
// server. Adjust below to match the requirements of your hosting environment.
// ---------------------------------------------------------------------------

/*
* Manhattan
*
module.exports = function(config, token) {
process.emit('application-ready', token, app.getHttpServer());
};
*/

/*
* Localhost and others where the default port/host combinations work.
* You can provide port, host, callback parameters as needed.
*/
module.exports = app.listen();
17 changes: 0 additions & 17 deletions lib/app/archetypes/app/full/index.js

This file was deleted.

12 changes: 0 additions & 12 deletions lib/app/archetypes/app/full/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,4 @@ var app = Mojito.createServer();
// server. Adjust below to match the requirements of your hosting environment.
// ---------------------------------------------------------------------------

/*
* Manhattan
*
module.exports = function(config, token) {
process.emit('application-ready', token, app.getHttpServer());
};
*/

/*
* Localhost and others where the default port/host combinations work.
* You can provide port, host, callback parameters as needed.
*/
module.exports = app.listen();
12 changes: 0 additions & 12 deletions lib/app/archetypes/app/simple/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,4 @@ var app = Mojito.createServer();
// server. Adjust below to match the requirements of your hosting environment.
// ---------------------------------------------------------------------------

/*
* Manhattan
*
module.exports = function(config, token) {
process.emit('application-ready', token, app.getHttpServer());
};
*/

/*
* Localhost and others where the default port/host combinations work.
* You can provide port, host, callback parameters as needed.
*/
module.exports = app.listen();

0 comments on commit 434f56b

Please sign in to comment.