Skip to content

Can't get Statamic to write contents #3270

Discussion options

You must be logged in to vote

I am still confused how to get everything working, but made some progress.

This is my current deployer.php settings for files/folders:

add('shared_dirs', [
    'storage',
    'content'
]);

add('shared_files', [
    '.env'
]);

add('writable_dirs', [
    'storage',
    'content',
    'public', 
    'bootstrap/cache',
]);

What did the trick for me was changing php-fpm user to deployer. This config can be done in /etc/php/8.1/fpm/pool.d/www.conf. Restarted fpm process and it was working (create, edit content, upload assets tested)

Another little adjustment needed in deployer.php: host(...)→set('http_user', 'deployer')

Next up I'm searching for a way to allow Statamic Git Integration to comm…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by hansipete
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants