Documentation
-
Home
-
Getting Started
-
Common Tasks
-
The Servd Plugin
-
Project Settings
-
Changing PHP Version
-
Changing Composer Version
-
Node Build Step
-
The Servd YAML File
-
Environment Variables
-
License Keys
-
Path Redirects
-
Headers
-
Dev Mode
-
SMTP
-
Outbound Email
-
Outbound Static IP
-
Webhooks
-
Dedicated Queue Runner
-
Post Deploy Tasks
-
Mutex Driver on Servd
-
Redis
-
Renaming A Project
-
Under Attack Mode
-
-
Domains & SSL
-
Importing & Cloning
-
Assets
-
Logs
-
Plans and Billing
-
Addons
-
Team & Project Management
-
Project Security
-
Your Account
-
Troubleshooting
-
Cookbook
-
Now & Next
-
The Small Print
Environment Variables
Servd uses real environment variables to manage your application's configuration and secrets. We do not use .env files. This is because .env files need to be present on the filesystem which can make changes difficult in a high availability environment.
There's not too much difference though, you can still add, remove and edit environment variables for your Servd project via the dashboard.
-
In the Servd dashboard, go to your production or staging environment variables page, depending on which environment you're interested in.
-
Make your changes.
-
Click Save.
-
To deploy your changes, click the 'Sync' button at the top of the page.