lundi 21 septembre 2015

How to access environment variables in .profile for a controller?

I have a problem accessing the environment variables in my EmberJs app.

I want to use the environment variable set in the .profile file of the server.

My .profile in the server

export SERVER_NODE=testNode

I already tried this solution :

  • process.env like node.js in my config/environment.js but it doesn't work, i cannot access it in my app (Stack Post here)

So if you have any idea about how I can do this, I take it.

Thanks you.




Aucun commentaire:

Enregistrer un commentaire