Created
July 2, 2013 18:23
-
-
Save isao/5911766 to your computer and use it in GitHub Desktop.
wrap mojito start
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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) | |
| }); |
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
if you use this, be sure to follow the instructions https://github.com/yahoo/mojito-cli-gv to set your env properly.