Skip to content

Instantly share code, notes, and snippets.

@isao
Created July 2, 2013 18:23
Show Gist options
  • Select an option

  • Save isao/5911766 to your computer and use it in GitHub Desktop.

Select an option

Save isao/5911766 to your computer and use it in GitHub Desktop.
wrap mojito start
#!/usr/bin/env node
var mcli = require('mojito-cli'),
args = ['start', '--context', 'environment:development'],
cwd = process.cwd();
mcli(args, cwd, function(err, msg) {
console.log(err || msg)
});
@triptych

triptych commented Jul 3, 2013

Copy link
Copy Markdown

if you use this, be sure to follow the instructions https://github.com/yahoo/mojito-cli-gv to set your env properly.

@isao

isao commented Jul 25, 2013

Copy link
Copy Markdown
Author

Thanks @triptych. Specifically:

Note: the environment variable $NODE_PATH must include
the global npm library path, i.e. the path displayed with `npm root -g`.

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