deployphp / deployer

The PHP deployment tool with support for popular frameworks out of the box
https://deployer.org
MIT License
10.41k stars 1.47k forks source link

Images broken after deploying Statamic #3632

Open Aquive opened 12 months ago

Aquive commented 12 months ago

When I deploy dep deploy Images on the site are broken (404). I need to manually do a "Clear all" in the control panel to make it work again, why is that?

<?php
namespace Deployer;

require 'recipe/statamic.php';

// Config

// We are using username and 'app password' to have write access without the need for an SSH key or agent
set('repository', '<url>');
set('update_code_strategy', 'clone');

add('shared_files', []);
add('shared_dirs', []);
add('writable_dirs', []);

// Hosts
host('production')
    ->set('hostname', '<host>')
    ->set('remote_user', 'app')
    ->set('deploy_path', '~/production')
    ->set('writable_mode', 'chmod');

// Hooks

after('deploy:failed', 'deploy:unlock');

Upvote & Fund

Fund with Polar

antonmedv commented 12 months ago

I guess the same problem as in https://deployer.org/docs/7.x/avoid-php-fpm-reloading