0

Mojito on cloud9?

    Hi,

Has anyone tried using Mojito with Cloud9 workspaces? Also, is there a place for us to contribute mojits we write?

Thanks,
Adolfo

by
5 Replies
  • 'npm install mojito' works for me on Cloud9, it just takes forever to download/install globally.

    The only thing that needs to be changed after that is to make sure your Mojito app is listening on 'process.env.PORT', and it should be fine.

    From a previous thread, I think the best place to contribute mojits is just to NPM for now, until they have a dedicated place for them.
    0
  • Adolfo:

    If there are any tricks to get Mojito working with Cloud9, can you document them using a Wiki page?
    https://github.com/yahoo/mojito/wiki/
    Thanks!

    For startup issues, see also
    https://github.com/yahoo/mojito/issues/265
    https://github.com/yahoo/mojito/pull/267
    https://github.com/yahoo/mojito/pull/422

    0
  • Clarence, how did you determine which hostname to hit from Cloud( when you run mojito start? It didn't output anything to me and I tried hitting the host from my server using "echo $HOSTNAME" but that didn't help.
    0
  • I don't know if just changing the port is going to do the whole trick for. After changing in application.js the appPort to process.env.PORT and doing mojito start I get the following:

    %u2714 Mojito(v0.5.2) started 'admin' on http://127.0.0.1:process.env.PORT/

    Which 127.0.0.1 is not a option for C9. Maybe setting up for C9 to Run whatever the start script is may work.

    0
  • Michael, you can't set appPort to a string with process.env.PORT. Usually, what you have to do is to change server.js (at the top level in your app folder), and replace:

    module.exports = app.listen();

    with this:

    app.listen(process.env.PORT);

    and that should get you running.

    0

Recent Posts

in Yahoo! Mojito