Skip to content

Symfony, Statamic, WordPress and PHP

Besides Laravel, Falak has presets for Symfony, Statamic, WordPress and plain PHP. All of them run on FrankenPHP (default) or PHP-FPM, deploy with zero downtime, and use the same flow as Deploy Laravel. This page lists what differs.

  1. Create the site from + Create → Git repository and pick the preset (Falak suggests one when it detects the framework).
  2. Pick servers (the first is the leader) and a domain.
  3. Add variables (for example database references) under Variables.
  4. Deploy.
Setting Value
Web directory public
Shared paths var/log/ (directory), .env.local (file)
Initial variables APP_ENV=prod, APP_SECRET
Deploy script
$FALAK_FETCH
cd "$FALAK_RELEASE_DIR"
$FALAK_PHP bin/console cache:clear --env=prod --no-debug
if [ "$FALAK_IS_LEADER" = "1" ]; then
$FALAK_PHP bin/console doctrine:migrations:migrate --no-interaction --allow-no-migration
fi
$FALAK_ACTIVATE
$FALAK_RESTART_PROCS

Symfony logs in var/log are collected by the agent. Add Messenger consumers as workers with a custom command, for example php8.4 bin/console messenger:consume async --time-limit=3600.

Servers install PHP 8.1–8.5 (default 8.4) with these extensions for every version: bcmath, cli, curl, gd, igbinary, intl, mbstring, mysql, pgsql, readline, redis, soap, sqlite3, xml, zip. Add PHP versions on the server page under PHP. See Provisioning.