From 0e532e81f4204a007be0b7b9abec29f2d6483461 Mon Sep 17 00:00:00 2001 From: Sven Olderaan Date: Sun, 16 Mar 2025 12:29:09 +0100 Subject: [PATCH] Update documentation and add gitignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Document server configuration and SSHFS mount - Add .gitignore to exclude mounts directory 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .gitignore | 22 ++++++++++++++++++++++ CLAUDE.md | 21 ++++++++++++++++++++- 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ecfc043 --- /dev/null +++ b/.gitignore @@ -0,0 +1,22 @@ +# Ignore mounted directories +mounts/ + +# Ignore fonts directory +fonts/ + +# Node modules +node_modules/ + +# IDE files +.vscode/ +.idea/ + +# Logs +*.log + +# OS generated files +.DS_Store +Thumbs.db + +# PHP temp files +*.swp diff --git a/CLAUDE.md b/CLAUDE.md index 5e9a7c6..c6a90e8 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -34,4 +34,23 @@ ### Extension Settings - Store settings in `extension_settings[extensionName]` - Allow configuration of image service URL -- Support style parameters (e.g., bubble style, colors) \ No newline at end of file +- Support style parameters (e.g., bubble style, colors) + +## Server Configuration + +### SSHFS Mount +- Remote server mounted at `/home/crystal/Projects/SillyBubble/mounts/calista` +- Mount command: `sshfs calista@calista.the.sexiest.cat:/var/www/calista.the.sexiest.cat/ /home/crystal/Projects/SillyBubble/mounts/calista` +- Verify connection: `ls -la /home/crystal/Projects/SillyBubble/mounts/calista` +- Common mount error: If "Transport endpoint is not connected", run `fusermount -u /home/crystal/Projects/SillyBubble/mounts/calista` and try mounting again + +### Deploying to Web Server +- Copy files to mounted directory: `cp /home/crystal/Projects/SillyBubble/image.php /home/crystal/Projects/SillyBubble/mounts/calista/` +- Create fonts directory if needed: `mkdir -p /home/crystal/Projects/SillyBubble/mounts/calista/fonts` +- Web server URL: `http://calista.the.sexiest.cat/image.php` +- Required server dependencies: PHP with GD library (`php-gd` package) + +### Testing the Image Generator +- Direct test: `http://calista.the.sexiest.cat/image.php?q=Test%20message` +- HTML interface: `http://calista.the.sexiest.cat/sillybubble.html` +- Configure SillyBubble extension to use `http://calista.the.sexiest.cat/image.php` as the image service URL \ No newline at end of file