Eugeny / ajenti-v

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

Problems with NodeJS Environment variables #99

Closed robhunt3r closed 10 years ago

robhunt3r commented 10 years ago

Hi,

I'm trying to set up a NodeJS site, for my site I need to export some env variables, for example:

PORT = 58080 ROOT_URL = "http://mysite.com" DISABLE_WEBSOCKETS = true HTTP_FORWARDED_COUNT = 1 MONGO_URL='mongodb://user:pass@127.0.0.1:27017/appDB'

I do this by going to Supervisor settings, select my app supervisor and inserting inside "Environment" box, but most of the time it doesn't work and when it does and I update/restart/whatever ajenti, thoose env variables goes empty again and again...

It would be nice to have an option that runs first some bash profile or whatever where we can declare "export MyStuff = Whatever" before running our app... Because it's frustrating :(

robhunt3r commented 10 years ago

Nevermiend, I just saw that I can parse theese settings inside "Web Sites" under "Content". Silly and blind me.

chrno1209 commented 5 years ago

Hi @robhunt3r , I am having issue when running my nodejs on Ajenti, if you already can run your app and have time, can you have a look at my issue please?

Many thanks, Hieu.