Setting environmental variables


#1

I’m looking to set an environmental variable to connect to mLab.

For example, I want to run process.env.MLAB and in my terminal, I can then do export MLAB={api_key}

However, ever time i restart my c9 environment, the MLAB that was previous set disappears. What do I need to do?


#2

Add export MLAB={api_key} to the end of ~/.bashrc