Config Files & Your Database
Keep passwords out of history with a credential-free example, and bring your database in line with a teammate's structure file.
Set your config file
On a project page, Set config (or the window that opens after you add a project) asks which file holds your passwords - a .env, config.php, .ini and so on. Revly then:
- adds that file to
.gitignoreand stops tracking it from now on - earlier snapshots may still contain the real values, because Revly never rewrites history, and backups and shared contributions include that history; - tracks a credential-free example in its place (in
.revly/config/), with the values blanked, and keeps its list of settings up to date when you change the real file; - shows you the example first - nothing is written until you press Save.
Where do the database details go?
Below the example, a switch offers two ways to tell Revly where the database host, name, user and password live in your file. The only reason it asks is the moment a teammate restores your backup: Revly writes their own database values into their copy of the file. Your values are never shared. If you do not use a database, skip it.
Pick from the file's settings
Four dropdowns list the settings Revly found in the file - for a .env or .ini file their names, for a PHP array config (<?php return [...], whatever the file is called) their paths such as connections.mysql.host. Revly guesses which is which; correct it if needed, or choose Not in this file.
Use my own placeholders
If your example already contains text that stands for a value - {DATABASE_HOST}, [DB_PASS], anything - type that text into the matching box, exactly as it appears. Each box tells you how many times it is found in the file. When a teammate restores, every occurrence is replaced with their value, in any kind of file.
- A PHP file gets its value escaped for the single or double quotes it sits in; a
.jsonfile for its double quotes. - In any other kind of file (
.env, ini, YAML, XML) a value may use only letters, digits and_ . : @ / + - ! % ^ * ~ ? ,; a password with anything else (a space,#,$, a quote) is refused with a message and you type it in your editor, or use the first way, which quotes.env,.iniand.tomlvalues properly. - A line break or other control character is always refused, and a placeholder that is not in the file is an error rather than a silently fake value.
Update my database
When a teammate shares a project, the database structure file (.revly/schema/revly-schema.json) travels with it. Update my database reads it, compares it with your local database and lists every change. Safe changes (a new table, column, index or foreign key) are marked as safe; anything that could lose data or loosen a rule, including a table that exists only on your side, needs your explicit acknowledgement. It runs only against your own computer's database, never a deployment target, and the file is checked strictly first - a file outside what Revly understands is refused with a pointer to your own database tool.
MySQL cannot undo structure changes, so a failure part-way leaves the earlier statements applied; PostgreSQL runs the whole plan as one unit. Only structure travels - never row data.