From 1b7b2b1e06b29ded53827b41a339c78652439d3f Mon Sep 17 00:00:00 2001 From: Sietse Snel Date: Thu, 4 Apr 2024 10:19:42 +0200 Subject: [PATCH] README: fix Artisan commands They need to be executed as the www-data user, in order to be able to store data in the logs. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fbafc4d..6a5816e 100644 --- a/README.md +++ b/README.md @@ -60,9 +60,9 @@ space. Run the following commands in /var/www/msl\_api after deploying the application using Ansible: ```bash -/usr/bin/php8.0 artisan migrate -/usr/bin/php8.0 artisan db:seed -/usr/bin/php8.0 artisan storage:link +sudo -u www-data /usr/bin/php8.0 artisan migrate +sudo -u www-data /usr/bin/php8.0 artisan db:seed +sudo -u www-data /usr/bin/php8.0 artisan storage:link ``` # Configuration