Can't get Statamic to write contents #3270
-
Hello hello, since a few days I'm struggling to get Statamic to work. I'm deploying to a Hetzner VPS (smallest for now, CX11 1vCPU, 2Gb RAM). I set up the server running The site itself works, but I can not edit any content from the backend. I get the message: I don't understand why this is, because there seems to be a symlink in that folder: Hope somebody can help. Thank you,
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I am still confused how to get everything working, but made some progress. This is my current 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 Another little adjustment needed in deployer.php: Next up I'm searching for a way to allow Statamic Git Integration to commit/push changes on the live server to the repository... |
Beta Was this translation helpful? Give feedback.
-
@hansipete how did you configure the deployment script to keep your assets after a new deployment ? I'm loosing all my images |
Beta Was this translation helpful? Give feedback.
I am still confused how to get everything working, but made some progress.
This is my current
deployer.php
settings for files/folders: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…