At the end of November, Engine 2.4.0 let you restore a backup beside your live project and added 75 new apps. Since then, we’ve kept going in the same direction: getting the Single Server Edition ready for a stable release, one Engine improvement at a time.
Version 2.4.1 is out, and it opens up a few new ways to use Engine. Not every project is a website, so Engine can now run the ones that aren’t. It also builds documentation sites, keeps backups after you delete a project and gives WordPress a few long-requested options.
Run projects that aren’t websites
Until now, every project on Engine was treated as a website. That worked well for most apps, but not for a Discord bot, a queue consumer or a scheduler. These programs run all the time without serving any pages, so Engine kept waiting for a web page that never came.
With version 2.4.1, you can mark a project as a worker. A worker gets no domain, no certificate and no HTTP check. Engine treats the deploy as successful once the process has been running for 30 seconds without restarting. If it stops, you see the exit code and the last lines it printed, and a redeploy brings back the version that worked before.
You can also mark a single service in a Compose project as a worker, so a website and its background worker can run side by side. And if you’re not sure what kind of project you have, inspecting the repository will suggest a worker when it looks like a bot or a queue consumer.
Publish your documentation
Engine now builds sites made with Hugo, Jekyll, Gatsby, Docusaurus, Eleventy, VitePress and MkDocs, and serves them as regular websites with their own 404 page. Point Engine at the repo and you get a working site, without building it yourself first.
That also helps with repositories that hold a library rather than an app. If there’s nothing to run but a documentation site sits in docs/ or a similar folder, Engine deploys that site instead.
We’ve also changed how Engine decides to serve frameworks such as Next.js, SvelteKit, Astro and Nuxt. It used to make that choice before the build. Now it builds once, looks at what the build actually produced and then either serves the files or starts the server. The deploy log tells you which one and why. If you know better, you can set it yourself with a single project setting.
Each deploy now also records what Engine expected to do and what changed along the way, such as a different port or package manager. When something behaves unexpectedly, you can see where the deploy went its own way.
More ways to rely on your backups
Deleting a project used to mean losing its backups too. In version 2.4.1, you can choose to keep them. Kept backups stay available for 30 days by default, and you can change that period or keep them until you delete them yourself.
Restoring a backup as a separate project, added in the previous update, now also works for classic PHP hosting and for projects with more than one database. WordPress sites are pointed at the new project and domain automatically. You can also set the new project’s limits in the same request, so they apply from the moment the restore starts.
One more thing that pairs well with this: an empty project can now take a copy of another project, files and databases included, while keeping its own name and domain. No need to delete it and start over.
More control over WordPress
Premium and custom plugins don’t live on WordPress.org, so until now there was no clean way to install or update them through Engine. You can now install a plugin or theme from a link to a ZIP file or from a ZIP you’ve uploaded to the project. When it replaces an installed copy, an active plugin stays active.
Automatic updates can now be turned on or off for each plugin and theme separately, not only for all of them at once.
WordPress imports have changed too. Engine now installs PanelAlpha Migrator straight from the WordPress plugin directory on both sites, and all you need to provide is the source site’s admin login. When the import finishes, Engine removes the copy of the plugin it installed.
Safer by default
Like every release, version 2.4.1 also takes care of a few details you shouldn’t have to think about. The install log no longer keeps your assistant’s token or the site password, which are shown once on screen instead. Deleting a project removes its metrics and stored secrets, so a new project with the same name starts clean. WordPress configuration reads also hide the database password and security keys.
You’ll also notice smaller improvements such as Engine keeping an hourly history of each project’s disk use and showing how many visitors a project had this month. Deploy logs explain failures more clearly, naming the missing file, package or tool, and static sites now tell browsers what to cache, so visitors see a new deploy right away.
We’re very close to stable
Each Engine release brings PanelAlpha closer to what we want it to be: the easiest way to run your projects on your own server. Version 2.4.1 brings us closer to a stable Single Server release, and we might have a little more to share around the same time. So, dare we say it… stay tuned!
And if you’re currently running Engine or trying the Single Server beta (or both), one of the best ways to help is to tell us how it’s going. Come chat with us on Discord, or head to GitHub to share an idea, report a bug or contribute.
Comments