Every commit goes live by itself

Every five minutes, Static Sites checks whether anything has changed in a site's git repository, rebuilds the site and puts it live. If a build fails, the previous version stays online and the deploy history shows you exactly why.

How Static Sites works

A static website lives as code in a git repository. To get a change online, someone has to build the site and put the output on the web server. Static Sites does that every time there is a new commit.

From commit to live site

  1. Check. Every five minutes the app compares the latest commit on the branch with the commit that is live.
  2. Build. If there is something new, it runs the install, sync and build steps on the server. Or it takes the build from the latest successful pipeline in GitLab CI.
  3. Go live. The output goes to the folder the web server serves. The commit, the duration and the status are recorded in the deploy history.
  4. Monitor. If it fails, the previous version stays in place and a new attempt follows with a growing waiting time. If it keeps failing, the administrators get an alert.

Who it’s for

What it gets you

A change in the repository is online within minutes, without anyone building by hand or copying files. If something goes wrong, the old site stays available. You see the full error message, and a resolved problem signs itself off.

What it does

Frequently asked questions

Can I add or deploy a site myself in Static Sites?
No. The overview shows the sites of every organisation on an installation, so the screen is only open to platform administrators. Within that group there are two roles: Static Site Viewer sees status and history, Static Site Admin can also deploy. If you publish a site with the Websites app, it is registered here automatically and you do not need to set anything up.
Which static site generators does it work with?
Each site has an install, sync and build command, so any generator you build with a command will work, such as Astro, Hugo or Eleventy. The sites from Websites and the LSQapps marketing site are Astro sites. If the site builds in GitLab CI, the app only fetches the finished result.
How quickly does a change go live?
The scheduler checks every five minutes. After a new commit the site is live within those five minutes plus the time the build itself takes. A step that takes longer than 15 minutes is aborted.
What happens when a build fails?
Nothing is put live and the last published version stays online. The run appears in the history as Failed, with the error message. The app tries again with a waiting time that doubles after every failure, up to a maximum of 6 hours. A new commit or the Deploy now button starts a new attempt immediately. Only a successful build resets the counter to zero.
Why does the screen tell me to check my deploy key?
That message appears when the previous attempt could not even fetch a commit, because fetching or cloning the repository failed. In that case the app does not look for new commits during the waiting period either, because it cannot read the repository. Usually a key or token has expired.