Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

[exs] Updated `index.js` for cloud deployment, the dependencies in `package.json`, module names for mojits. #1353

Merged
merged 16 commits into from

2 participants

@zhouyaoji
Owner

No description provided.

examples/sandbox/view_refresh/app.js
((6 lines not shown))
+
+
+/*jslint node:true*/
+
+'use strict';
+
+var debug = require('debug')('app'),
+ express = require('express'),
+ mojito = require('../../../'),
+ app;
+
+app = express();
+
+app.use(mojito.middleware());
+app.mojito.attachRoutes();
+app.post('/tunnel', mojito.tunnelMiddleware());
@imalberto Owner

This explicit tunnel call is no longer required. That's taken care of by mojito.middleware().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
examples/sandbox/metabubble/application.json
@@ -1,6 +1,7 @@
[
{
"settings": ["master"],
+ "appPort": 8666,
@imalberto Owner

appPort no longer valid in application.json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
examples/sandbox/metabubble/app.js
((6 lines not shown))
+
+
+/*jslint node:true*/
+
+'use strict';
+
+var debug = require('debug')('app'),
+ express = require('express'),
+ mojito = require('../../../'),
+ app;
+
+app = express();
+mojito.extend(app);
+app.use(mojito.middleware());
+app.mojito.attachRoutes();
+app.post('/tunnel', mojito.tunnelMiddleware());
@imalberto Owner

Remove.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@imalberto
Owner

@zhouyaoji Looking good. Just remove references to appPort in application.json and mijito.tunnelMiddleware() in app.js since those are no longer supported.

@imalberto
Owner

+1. Merge it :)

@zhouyaoji zhouyaoji merged commit 97a78e8 into yahoo:develop

1 check passed

Details default The Travis CI build passed
@zhouyaoji zhouyaoji deleted the zhouyaoji:next_deploy_to_cloud branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 5, 2014
  1. @zhouyaoji
  2. @zhouyaoji
Commits on Feb 13, 2014
  1. @zhouyaoji
  2. @zhouyaoji

    Fixed conflict with app.js.

    zhouyaoji authored
  3. @zhouyaoji
Commits on Feb 14, 2014
  1. @zhouyaoji
Commits on Feb 18, 2014
  1. @zhouyaoji
  2. @zhouyaoji
  3. @zhouyaoji

    Merge branch 'next_update_non-documented_exs' into next_deply_to_manh

    zhouyaoji authored
    Conflicts:
    	examples/performance/string/app.js
Commits on Feb 22, 2014
  1. @zhouyaoji
  2. @zhouyaoji

    Fixed conflicts.

    zhouyaoji authored
  3. @zhouyaoji

    Updated package.json to use to start app, dependences, removed refere…

    zhouyaoji authored
    …nces to the tunnel in , and added new lines to the end of the files.
  4. @zhouyaoji

    Removed npm log files.

    zhouyaoji authored
Commits on Feb 26, 2014
  1. @zhouyaoji
Commits on Feb 27, 2014
  1. @zhouyaoji
Commits on Feb 28, 2014
  1. @zhouyaoji
Something went wrong with that request. Please try again.