diff --git a/backend/workflows/templates/workflows/developer_handbook.html b/backend/workflows/templates/workflows/developer_handbook.html index d72a959..04d5474 100644 --- a/backend/workflows/templates/workflows/developer_handbook.html +++ b/backend/workflows/templates/workflows/developer_handbook.html @@ -287,73 +287,98 @@ make backup-verify BACKUP_DIR=backups/backup_YYYYmmdd_HHMMSS
develop for the test deployment, main reserved for production..github/workflows/deploy-test.yml..github/workflows/deploy-prod.yml.192.168.2.55. For the current local test server, the correct CD path is manual deployment from a LAN machine or a self-hosted runner inside the same network.development and production.TEST_DEPLOY_HOSTTEST_DEPLOY_USERTEST_DEPLOY_PORTTEST_DEPLOY_PATHTEST_DEPLOY_SSH_KEYPROD_DEPLOY_HOSTPROD_DEPLOY_USERPROD_DEPLOY_PORTPROD_DEPLOY_PATHPROD_DEPLOY_SSH_KEYSettings.Environments in the left sidebar.development.production.development.Environment secrets, add the deployment secrets one by one.production.192.168.2.55root/opt/workdockhttp://192.168.2.55:8088TEST_DEPLOY_HOST=192.168.2.55TEST_DEPLOY_USER=rootTEST_DEPLOY_PORT=22TEST_DEPLOY_PATH=/opt/workdockTEST_DEPLOY_SSH_KEY=<full private key content>Deploy Test on branch develop.http://192.168.2.55:8088/healthz/ returns HTTP 200.develop.main.The test server is inside the local network and uses a private IP address 192.168.2.55. GitHub-hosted runners on the public internet cannot reliably reach that target. Because of that, the correct deployment path today is:
Automatic CD from GitHub becomes appropriate only after moving to a public server or using a self-hosted runner inside the LAN.
+develop.develop into main.From the Mac on the same network:
+git checkout develop
+./scripts/deploy_test_from_mac.sh
+ This helper script does all of the following:
+developorigin/develop/opt/workdock with rsync.env.test and .env.prod192.168.2.55root/opt/workdock.env.testhttp://192.168.2.55:8088/healthz/https://workdock.bostame.de/.github/workflows/deploy-test.yml exists, but GitHub-hosted deploy to the LAN server is not the recommended path right now..github/workflows/deploy-prod.yml exists for later production use./opt/workdock/.env.test still exists on the server.ssh -4 root@192.168.2.55
+ curl -I http://192.168.2.55:8088/healthz/
+ ssh root@192.168.2.55 "cd /opt/workdock && docker compose --env-file .env.test -f docker-compose.prod.yml ps"
+ DJANGO_DEBUG=1 in .env.test because the security checks correctly reject insecure cookie settings when DEBUG=0 and the deployment is still plain HTTP. This is acceptable for the internal test box only. Production must run with HTTPS and DEBUG=0.
+ The current LAN test deployment intentionally uses DJANGO_DEBUG=1 in .env.test because the security checks correctly reject insecure cookie settings when DEBUG=0 and the deployment is still plain HTTP behind a local test topology. This is acceptable for the test box only. Production must run with HTTPS and DEBUG=0.