From 385f68a1d72aa1c4b9f09f274a38cdf647981c38 Mon Sep 17 00:00:00 2001 From: Protocolbot Date: Mon, 6 Jul 2026 15:17:26 -0600 Subject: [PATCH] docs: add data/ directory permissions step to Cloudron instructions --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8dd2325..b53b6fa 100644 --- a/README.md +++ b/README.md @@ -61,11 +61,15 @@ protocol-droid/ ### On Cloudron -1. Create a LAMP app in Cloudron (no MySQL addon needed) +1. Create a LAMP app in Cloudron (no MySQL addon needed — uses SQLite) 2. Upload all files to the app's web root -3. The database schema auto-initializes on first API request (creates `data/protocol_droid.db`) -4. Visit the site and register — the **first user to register becomes admin** -5. Optionally load seed protocols: sign in as admin and `POST /api/seed` (or use the API endpoint with curl: `curl -b cookies.txt -X POST https://your-site/api/seed`) +3. Ensure the `data/` directory is writable by the web server: + ```bash + mkdir -p data && chown www-data:www-data data && chmod 775 data + ``` +4. The database schema auto-initializes on first API request (creates `data/protocol_droid.db`) +5. Visit the site and register — the **first user to register becomes admin** +6. Optionally load seed protocols: sign in as admin and `POST /api/seed` (or use the API endpoint with curl: `curl -b cookies.txt -X POST https://your-site/api/seed`) **No default admin credentials exist.** A fresh deployment has an empty database. The first registration creates the admin account. Seed protocols are optional and must be explicitly loaded.