• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Question Auto-deploy with Plesk

DevHarm

New Pleskian
Server operating system version
Ubuntu
Plesk version and microupdate number
18.0.73
Hey everyone,

I’m hosting a Laravel 12 app on a VPS with Plesk. Right now I’m using Git auto-deployment for a staging environment that pulls the latest changes from GitHub to a subdomain.

Everything works fine, composer install, cache clearing, etc. The only thing I still do manually after each deploy is php artisan migrate via the Laravel Toolkit in Plesk.

When I try to add the migrate command in the “Additional deployment actions” section, it fails. Plesk runs those scripts in a chrooted web-user context, which doesn’t have access to the PHP CLI or the full environment Artisan needs. I do have root access on the server, just not inside the Git deployment task itself.

So I’m wondering if anyone has found a safe or reliable way to trigger migrations automatically on Plesk for a staging setup, or if it’s actually better to keep migrations manual to review schema changes before applying them. Ideally, I’d like to keep the whole CI/CD flow inside Plesk without external scripts or cron jobs.

Auto-deploy works great otherwise, this migration step is the only missing piece before full automation.

Thanks, Harm
 
Back
Top