A project’s domain can be the same across environments, or different: Local, Production, Stage and Dev are each configured independently. Rather than assume either way, Waddle carries safeguards that keep the domain accurate based on location, whenever you push a project to a remote or sync its database between environments. This explains what those safeguards are and where each value is corrected.
The application .env is gitignored
The application .env (website/src/.env, used by Laravel/Symfony platforms) is gitignored:
it holds secrets such as APP_KEY / APP_SECRET, so it must never enter the repository. A bare
.env ignore pattern matches at every depth, so website/src/.env is excluded too.
That means git push does not carry the application .env to the remote. Waddle therefore
copies it out-of-band during the push, the same way it already provisions the other gitignored,
environment-specific files (the root .env, basic-auth files):
- During a push to a remote, Waddle copies the local
website/src/.envto the remote over SSH. - It is copied verbatim, so the remote shares the same
APP_KEYas local. This matters:APP_KEYencrypts sessions andencrypted-cast database columns, so a database uploaded from local only decrypts on the remote if the keys match. Re-rendering a fresh.env(which would mint a new key) is intentionally avoided for this reason. - The copied file still has the local
APP_URL, so the domain is corrected next.
Where each domain value is fixed
| The domain lives in… | Reaches the remote via… | Corrected by… |
|---|---|---|
Gitignored app .env (APP_URL) |
Waddle’s copy step (above) | after_project_update.sh (rewrites APP_URL) |
Committed config file (LocalSettings.php, site config.yaml, Flarum config.php, ProcessWire config.php) |
git push (with local domain) |
after_project_update.sh (rewrites it in place) |
Database (siteurl, base_url, ps_shop_url, phpbb_config…) |
Database sync | after_db_updated.sh (rewrites it via CLI/SQL) |
See after_project_update.sh and after_db_updated.sh for the per-platform details.
Platforms without a domain
Skeleton blueprints (raw Laravel, Symfony, CakePHP, CodeIgniter, Drupal, Grav, Yii, and the blank
custom/webstack blueprints) are not given a domain by Waddle; they ship with their framework’s
default config. How those projects resolve their URL is up to whoever builds on them, so Waddle
does not attempt to rewrite anything. Add an after_project_update.sh yourself if your build pins
a domain somewhere; see Customising a Remote Deployment.