Eugeny / ajenti-v

Virtual Hosting addon for Ajenti
ajenti.org/#product-ajenti-v
MIT License
225 stars 80 forks source link

Ajenti-v on Ubuntu wrong Node executable on supervisord.conf #214

Open luisvsilva opened 8 years ago

luisvsilva commented 8 years ago

Currently Ajenti-v is setting the executable on supervisord.conf as:

"node"

On Debian systems should be "nodejs"

This is breaking the start of the node app obviously.

I think the problem is in this:

node_bin = 'node'
        try:
            subprocess.call(['which', 'node'])
        except:
            node_bin = 'nodejs'

"which node" is not throwing any error when I run on the CLI I just get nothing on STDout.

Xefir commented 8 years ago

Have you tried to install the nodejs-legacy package ?

luisvsilva commented 8 years ago

Sorry don't understand the question. I just:

apt-get install nodejs

Which i find interesting, because shouldnt "ajenti-v-nodejs" have a dependency on nodejs?

Should I had installed the package you mentioned? And why would I want to install a legacy package?

Thanks

luisvsilva commented 8 years ago

OK, I just read the details of the package, and yeah it makes sense (it basically creates a symlink for nodejs)., Problem is Ajenti-v-node tries to detect the system where it is running (debian or other) and failing, so that needs to be fixed, or removed and added the respective dependencies to ajenti-v-nodejs, or am I missing something?