Deploy Drupal on TurboStack
Drupal is a PHP content management framework. On TurboStack the platform provisions the PHP runtime, MySQL database, and Redis cache from your host configuration, and you deploy by publishing.
Note
This is a configuration-only application: you bring your own Drupal codebase and database. Deploy your code with Git deployment.
Requirements
Configure it
- Open the host's Applications tab.
- Click Add app or database.
- Set App Type to
drupaland choose the PHP runtime under Technologies. - Enable MySQL and Redis as services.
- Publish, then deploy your code via Git deployment.
Example configuration
webserver: nginx
mysql_version: "8.4" # Drupal database
redis_enabled: true # cache backend; configure Drupal to use it
system_users:
- username: prod
vhosts:
- server_name: drupal.example.com www.drupal.example.com
app_type: drupal
php_version: "8.4"
cert_type: letsencrypt
Why these choices
- MySQL 8.4 is Drupal's relational datastore for content, configuration, and users.
- Redis provides a fast cache backend, but Drupal must be configured to use it (via a contrib module and settings), since it is not automatic.
- Varnish is optional; enable it for full-page caching of anonymous traffic when needed.
- Nginx serves Drupal efficiently and pairs with PHP-FPM.
- You bring your own code, so the application files and database are deployed by you rather than scaffolded by the platform.
Serve an AI discovery file
An artificial intelligence (AI) discovery file describes your content for AI tools.
On Nginx hosts, /llms.txt can be a static file or a response generated by Drupal.
When no static file exists, TurboStack routes the request through Drupal so a module can generate the response.
Publish the host to apply this routing change to an existing application, then check https://drupal.example.com/llms.txt.
You must supply the file or configure a Drupal module to generate it.
Related
-
Best practices - performance & stability.
-
Troubleshooting - logs & common fixes.