Drupack runs Drupal from a single executable that carries FrankenPHP, PHP, Caddy and Composer. It serves a Drupal project you already have with the project's own settings, database and Drush, or packs a whole site into one file. Linux, macOS and Windows.

Add it to a Composer project

composer require 'drupal/drupack:^1.0@RC'
./drupack

Composer asks you to trust the plugin once. From then on, composer install downloads the Drupack release that matches the package, on your laptop and on the server.

./drupack serves the project on http://127.0.0.1:3787 and prints a one-time login link. ./drupack drush COMMAND runs the project's Drush, and ./drupack stop stops the server.

Start without PHP

Download drupack once, and it creates and serves projects with the PHP and Composer it carries:

mkdir sites && cd sites
curl -fsSL https://drupack.tresbien.tech/install.sh | sh
./drupack composer create-project drupal/cms my-site
cd my-site
../drupack

From inside a project, ../drupack drush COMMAND and ../drupack stop work the same way. ./drupack path/to/project serves any other Drupal project. On Windows, the download is irm https://drupack.tresbien.tech/install.ps1 | iex in PowerShell.

Packed sites

A build packs a site and its runtime into one executable, which installs and serves the site with nothing else on the machine. The Drupacked Demo is Drupal CMS packed this way:

mkdir demo && cd demo
curl -fsSL https://drupack.tresbien.tech/demo.sh | sh
./drupacked-demo

Packed sites are experimental in 1.x. Build your own site has the setup.

Status

1.0.0-rc1 is out, and 1.0.0 follows after a week without a Drupack fix. From 1.0.0, every 1.x release keeps the commands, options and settings of drupack; Stability lists them. My own site runs on it, and Run the engine as a service covers a server.

Help wanted

The test suite tells me Drupack starts on every platform. It can't tell me what breaks on your site. Try it on a real project and open an issue with what went wrong, especially on macOS and Windows.

I'm also looking for a co-maintainer or two, and for sponsored time. If your company is interested, let me know in the issue queue or in #drupal Slack.

About the code

I designed Drupack and I review every change. Most of the code was written with help from LLMs. Before each release the test suite runs the built binary on Linux, macOS and Windows, and nothing ships unless it passes.

Supporting organizations: 

Project information

  • Created by nod_ on , updated
  • shieldStable releases for this project are covered by the security advisory policy.
    There are currently no supported stable releases.

Releases