From cb6a548d1781cb2cc2854068d1d9a78a67817560 Mon Sep 17 00:00:00 2001 From: Ruben Date: Thu, 2 Oct 2025 18:48:34 +0200 Subject: [PATCH] Add README with deployment and development structure Describe local and server directory layouts Explain required symlinks for production setup Document web server configuration details --- README.md | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..a36e8ab --- /dev/null +++ b/README.md @@ -0,0 +1,45 @@ +# Stopplidelsen.no - Deployment Setup + +## Local Development Structure + +``` +stopplidelsen.no/ +├── app/ # Application router and logic +├── content/ # Content files (from innhold repo) +└── custom/ # Custom templates and styles (from innhold repo) +``` + +## Server Deployment Structure + +The production server uses symlinks to separate the app code from content, allowing two independent git repositories: + +``` +/home/rubensol/dev.stopplidelsen.no/ +├── folderweb/ # App repository +│ ├── app/ +│ └── custom/ # Symlink → ../innhold/custom/ +└── innhold/ # Content repository (document root: innhold/content) + ├── content/ + ├── custom/ + └── app/ # Symlink → ../folderweb/app/ +``` + +## Required Symlinks + +### In `/innhold/` directory: +```bash +cd /home/rubensol/dev.stopplidelsen.no/innhold/ +ln -s ../folderweb/app app +``` + +### In `/folderweb/` directory: +```bash +cd /home/rubensol/dev.stopplidelsen.no/folderweb/ +ln -s ../innhold/custom custom +``` + +## Web Server Configuration + +- **Document Root:** `/home/rubensol/dev.stopplidelsen.no/innhold/content` +- The `.htaccess` file in `content/` routes all requests through `index.php` +- Static `/app/` requests are handled by `app/static.php`