docs: add data/ directory permissions step to Cloudron instructions
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user