deployer icon indicating copy to clipboard operation
deployer copied to clipboard

Images broken after deploying Statamic

Open Aquive opened this issue 1 year ago • 1 comments

  • Deployer version: 7.3.1

  • Deployment OS: Ubuntu

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

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

Aquive avatar Jul 05 '23 12:07 Aquive

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

antonmedv avatar Jul 05 '23 14:07 antonmedv