Skip to content

What each feature does

DepartureGate moves a site’s templates between three places. Most of what a button does follows from which places it touches.

Place What it holds How DepartureGate uses it
The CMS (Terminal Four) The templates: page layouts, content layouts, content types, and the site’s CSS and JavaScript in the Media Library Pull copies them to your computer; Push sends your edits back
The published site The finished pages visitors see Mirror copies them, so you have real pages to work on
Your computer The project folder: the pulled templates and the mirrored pages You edit here, and Start local site shows the result

The CMS and the published site are usually two different servers. Either can be behind a VPN, and either can be down while the other works.

  1. Add an environment. In the app’s welcome screen or Settings, give it a short name (such as test), the CMS address, and the published site’s address. Environments explains what one is.
  2. Store your API token, then press Check connection. It makes one read-only request to T4 and tells you whether the token works. Where tokens come from: Your first project.
  3. Pull source. Downloads the templates. A few minutes the first time.
  4. Start local site. The first time, it mirrors the published site before it starts, so you don’t need to press Mirror site. That takes a few minutes; after that it starts at once.
  5. View site, and open the DepartureGate button in the bottom corner of the page: that is the inspector.

That’s it. Optionally, run Map sections once, so the inspector can name exact files instead of making a best guess.

From then on, a day’s work is: Sync, edit files in your editor, check them in the local site, Commit to git, Push to T4. See A day’s work.

An environment is one Terminal Four CMS and the site it publishes. Most teams have two, such as test (a staging server) and prod (the live one). Each environment has its own address, token and pulled copy of the templates, in its own folder.

Pushing is off for a new environment, so nothing can be written to it until you allow it in Settings. Leave production pull-only unless you deploy to it from here.

Each environment has a tile down the app’s left edge; click one to switch to it. The tile shows the name’s initials, or a short code (up to three characters, such as PRD) or an emoji you choose under Settings → Short code or icon. A pencil on a tile’s corner marks an environment you can push to.

The free version allows two environments per project. DepartureGate Pro removes the limit.

Below, each button says which server it contacts and whether it can change anything in T4. Before contacting T4 or the published site, a button asks, naming the server; you can tell it not to ask again for the rest of the session. Start local site is the exception: starting it is the request.

Downloads the templates from the CMS: page layouts, content layouts, content types, and the Media Library’s CSS and JavaScript. These are the files you edit.

  • Use it the first time, and when someone may have changed templates in the CMS. Sync does it for you.
  • Contacts the CMS. Changes T4: no.
  • It never overwrites a file you have edited since your last pull: it tells you instead.

Copies the finished pages from the published site, so the local site has real pages with real content to show.

  • Use it only when the published site has changed a lot: new pages, or content edited in T4 and published. Editing templates does not call for a new mirror.
  • Start local site mirrors by itself the first time, so you rarely press this.
  • Contacts the published site. Changes T4: no.

Walks the site’s sections in T4 and records which layout each one uses and which content sits in it. With that map, the inspector names the exact file behind any part of a page; without it, it sometimes has to infer.

  • Use it once, and again after big changes to the site’s structure. It is slow, thousands of requests, but picks up where it left off if interrupted.
  • Contacts the CMS. Changes T4: no.

Pulls, then tells you what changed: in the CMS since your last pull, and on your computer.

  • Use it at the start of each working session.
  • Contacts the CMS. Changes T4: no.

Runs the site on your computer, at http://127.0.0.1:8321, from the mirrored pages. Your CSS and JavaScript edits show as soon as you save. With Pro, your template edits show too.

  • Use it whenever you are editing. It keeps running in the background until you stop it, and every other button still works meanwhile.
  • Contacts the published site the first time (to mirror it), and afterwards only for a file the mirror is missing. Changes T4: no.

Opens the local site in your browser. It is available a moment after Start local site.

Lists the files you have changed, and checks each against T4 so you know whether someone changed the same file in the CMS meanwhile.

  • Contacts the CMS. Changes T4: no.

Checks every pulled file against what the CMS holds now, and lists those that differ. This finds changes made directly in the CMS, not only your own.

  • Use it before a push you want to be sure of, or when something looks wrong. It is slow over a VPN: one request per file.
  • For one file, use diff on its row in Changes instead.
  • Contacts the CMS. Changes T4: no.

Records your edits in the project’s git repository, with a message you write. Each commit also names the CMS record behind every file in it.

  • Use it before pushing. Each environment can require it (Settings).
  • Only shown when git is on for the project. Changes T4: no.

Sends the files ticked in Changes to the CMS. It shows each change and asks before sending. Before writing a record it saves a copy of it (a snapshot), so a push can be undone with Restore.

  • Only works for environments where pushing is allowed.
  • Contacts the CMS. Changes T4: yes. This is the one free button that writes to T4.
  • Pushing changes the templates in the CMS. Pages on the published site change when T4 next publishes them.

The list of files you have edited since the last pull. On each row:

  • diff shows what changed: against your last commit, or against T4 (it asks before contacting T4).
  • push sends that one file.
  • revert to original throws your edits to that file away and puts back the original: the version last pulled from T4. It asks first, and sends nothing to T4. Edits you have not committed to git cannot be got back.

When each command last ran, and a log of recent activity in this project.

Writes a T4 tag for you, and its Handlebars equivalent, from your project’s own content types and T4’s tag reference. It only produces what the chosen tag accepts. Contacts: nothing.

The DepartureGate button in the corner of the local site. Open it, turn on Select on click, and click anything on the page: it names the content type, the layout and the stylesheet that made it, with buttons to open each file in your editor. Links stop working while Select on click is on, so turn it off to follow one. More in the inspector guide.

These need a DepartureGate Pro licence. Without one they are still listed, and each says what unlocks it. To try them, start the 30-day free trial under Settings → License, or with t4 license trial: it includes everything here except CI deploys, and when it ends Pro locks again without losing anything.

Each Pro tab opens with its key points. Its Details button opens a full manual, with a diagram of how the feature works, an annotated example of the tab, what each button does, and what to do when something goes wrong.

Your edits to page layouts and content layouts show in the local site as you save, before anything is pushed. Without Pro, the local site shows your CSS and JavaScript edits, but template edits only once they are pushed and published. Guide.

Shows a content layout you have edited filled with made-up content (text, dates, images, lists), so you can see it working before real content exists. Guide.

Highlight outlines every content item on the page with its type; the Content list names everything on the page; and for a page T4 gives no layout id for, the inspector works out which layout made it.

Drift answers “where do these two environments no longer match?” For example: a template fixed on test and never copied to prod, or a change someone made directly in prod’s CMS.

It lists every file that differs, or exists in only one of the two, with a diff for each. Three ways to check:

  • The list when you open the tab compares the last pull of each environment. It is instant and contacts nothing, but only as current as those pulls, so press Pull both first for an up-to-date answer.
  • Check live reads both CMSs now, without pulling.
  • Check prod against git compares production’s CMS with your git repository. It finds edits made in the CMS that are not in the repository, and commits not deployed yet.

Changes T4: no. Drift only reports. To fix what it finds, use Promote or push.

Promote copies templates from one environment to another, usually test to prod once a change has been checked on test.

  • It sends what the source CMS holds now, not the files on your computer: what was checked on test is exactly what goes to prod.
  • Tick the files to send. Check against T4 shows what would change without writing anything; Promote to … asks once, then sends them, snapshotting each record before replacing it so Restore can undo it.
  • If someone edited the same file in the target’s CMS since you last pulled it, that file is skipped rather than overwritten.
  • It can only update records that exist in both. A layout that exists only in test has to be created in prod’s CMS first, then pulled, then promoted.
  • The target must allow pushing. Changes T4: yes, in the target environment.

Undoes a push or a promote. Every push saves the records it replaces; Restore puts one of those snapshots back. Choose the snapshot, press Preview the changes to see exactly what will change, then restore.

  • It restores only the fields DepartureGate manages, so anything else edited in the CMS since is kept.
  • It snapshots what it replaces first, so a restore can itself be undone.
  • Your own files are left alone. Pull afterwards to bring them in line with T4.
  • Changes T4: yes.

A record of every push, promote and restore: when, who (by git email), which file, which commit, and under which licence. It is kept in the project and committed with the templates, so everyone working on the site shares the same log.

Check it is intact confirms nobody has edited or deleted entries: each entry is linked to the one before it, so a change anywhere breaks the chain from that point on. Contacts: nothing.

t4 compare checks that the local site shows what the published site does, page by page, with everything DepartureGate adds taken out. Use it when you need to trust the local copy. Guide.

t4 doctor checks a T4 instance for everything DepartureGate relies on, and reports what works and what does not. Read-only. Use it when setting up a new instance, or when something fails in a way that makes no sense. Guide.

t4 ci deploys from a pipeline (GitHub Actions, GitLab CI) instead of from someone’s computer, with rules you commit to the repository: which branches may deploy, who must approve, and how many files a deploy may change. Guide.

Any number of environments per project, instead of two.

An independent, unofficial tool. Not produced, endorsed or supported by TERMINALFOUR Solutions Ltd, and not TERMINALFOUR software. “T4” and “TERMINALFOUR” are their trademarks, used here only to identify the software this works with. Copyright © 2026 Small Robot Corp. Source available under the PolyForm Shield License 1.0.0.