If you ever took a tutorial on Node.Js you will often here instructors saying listen the server to the process.env.PORT
but where is this PORT thing.
In this video i show you quickly how to setup your own environment variables, step by step
- Edit the
/etc/environment
file withsudo
privileges. - Add your variable name without any space in be between like this
name="me"
- Reboot the system
- You can now use that environment variable.
Top comments (0)