Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Solution for using things like `$ nodemon`, `$ supervisor` ... #84

Closed
niftylettuce opened this Issue · 3 comments

2 participants

@niftylettuce

@visionmedia do you have any recommendations for how this could be integrated much more cleanly?

Here's what we have to do now to use n with supervisor:

node=/usr/local/n/versions/0.8.8/bin/node supervisor server

This might be a better way perhaps?

n supervisor 0.8.8 server
@niftylettuce

This actually isn't too bad:

node=$(n which 0.8.8) supervisor server
@niftylettuce

Maybe we should add this to the docs somewhere as well?

Example:

Readme

... stuff ...

Tips

Running supervisor, nodemon, or another module that utilizes your node environment variable?

node=$(n which [version]) supervisor server
@niftylettuce

Actually the correct solution should be:

supervisor -x $(n which [version]) server

I just found out about -x flag for supervisor.

@tj tj closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.