![]() ![]() You could have a variable set to one value on your development machine and another in your production environment without having if-statements or special config files. Since they are bound to our environment they are great for things such as API access tokens. ![]() With PATH, you can write just the name of an executable rather than the full path to it in your terminal since the shell will check the local directory as well as all directories specified in the PATH variable for this executable.Īside from ‘built-in’ variables we also have the opportunity to define our own environment variables. The most well known environment variable is probably PATH which contains the paths to all folders that might contain executables. Environment Variables?Įnvironment variables, as the name suggests, are variables in your system that describe your environment. Environment variables are a good solution and they are easy to consume in most languages. These are often configuration values that depend on the environment such as debugging flags or access tokens for APIs like Twilio. There are some things we just shouldn’t share with our code.
0 Comments
Leave a Reply. |