Environment Variables
Environment Variables are used as both Run Time and Build Time lifecycle of your app.
During the Build stage of your Deploy action, your app's code gets pulled and compiled and may access environment variables similar to how you would use a local .env
file or operating system specific variables for compiling your app.
In addition to building time, when your app starts, the same Environment Variables are available for usage.
Environment Variables allow you to make configuration easier for your app. By specifying specific API KEYS or dev
versus prod
configurations such as LOG_LEVEL
can be driven by Environment Variables.
note
Environment Variables are not available for Catalog services.
#
New Service Environment Variables- Choose your environment you are interested in deploying into at the top left.
- Click Create Service at the top right.
- Enter in your repository information.
- Click the Environment Variables tab available within the panel.
- After adding your environment variables, then click Deploy button at the top right.
#
Edit Service Environment Variables- Choose your environment you are interested in deploying into at the top left.
- Choose the service from the services list you are interested in editing.
- Click Edit Service at the top right.
- Click the Environment Variables tab available within the panel.
- After making the modifications you wish to make, then click Deploy button at the top right.
#
View Historic Environment VariablesIf you wish to see what environment variables you used in the past, you may look at the configuration of previous releases.
- Choose your environment you are interested in deploying into at the top left.
- Choose the service from the services list you are interested in editing.
- Click on the Releases tab near the top left of the screen.
- Click the ... on the right of the row to the specific release you are interested in viewing.
- Click Edit Release option
- Click the Environment Variables tab available within the slide-out panel.
.env
file#
Paste Environment Variables from .env
files have been growing in popularity and you can paste this format into KintoHub.
An example file below:
- Go to an Environment Variables tab following the instructions from above.
- Copy your entire
.env
file into your clipboard.Command+C
orCTRL+C
depending on your operating system.
- Right-click the Key input field and click
Paste
.
#
Copy Environment Variables from KintoHub- Go to an Environment Variables tab following the instructions from above.
- Click the
Copy to Clipboard
button which will copy the values in.env
file format