BS-007 Implement accepted Contact page and independent enquiry service
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Isolated manual-test runtime only. No SWAG, production env, external networks or mail.
|
||||
# Isolated database-free Contact runtime. No SWAG, production env or outbound mail.
|
||||
services:
|
||||
api:
|
||||
build:
|
||||
@@ -8,11 +8,9 @@ services:
|
||||
DEBUG: 'false'
|
||||
APP_URL: http://127.0.0.1:18081
|
||||
CORS_ORIGINS: http://127.0.0.1:18081
|
||||
SQLALCHEMY_DATABASE_URI: sqlite:////tmp/testtask.sqlite
|
||||
EMAIL_DELIVERY_ENABLED: 'false'
|
||||
REGISTRATION_MODE: closed
|
||||
SECRET_KEY: disposable-local-testtask-key-not-for-production
|
||||
command: [sh, -c, 'flask --app api.py db upgrade && exec gunicorn --bind 0.0.0.0:5000 --workers 1 api:app']
|
||||
CONTACT_TRUST_PROXY: 'true'
|
||||
command: [gunicorn, --bind, '0.0.0.0:5000', --workers, '1', --timeout, '20', contact_app:app]
|
||||
tmpfs:
|
||||
- /tmp:mode=1777
|
||||
ports:
|
||||
|
||||
@@ -56,7 +56,7 @@ import urllib.request
|
||||
for url in ['http://127.0.0.1:15001/api/health/ready', 'http://127.0.0.1:18081/', 'http://127.0.0.1:18081/api/health/ready']:
|
||||
with urllib.request.urlopen(url, timeout=10) as response:
|
||||
assert response.status == 200, url
|
||||
print('Ready: http://127.0.0.1:18081/ — inherited starter; registration closed, email disabled; no login required.')
|
||||
print('Ready: http://127.0.0.1:18081/ — BortStack marketing; database-free Contact runtime, delivery disabled; no login required.')
|
||||
PY
|
||||
;;
|
||||
cleanup)
|
||||
|
||||
@@ -4,6 +4,6 @@ ROBORTO_TASK_ID_PATTERN='^[0-9]{3}$'
|
||||
ROBORTO_WORKTREE="${ROBORTO_PROJECT_ROOT}/.test-worktrees/task-${ROBORTO_TASK_ID}"
|
||||
ROBORTO_HOOK="${ROBORTO_PROJECT_ROOT}/.roborto/testtask-hook"
|
||||
# Loopback-only manual testing; fixed ports prevent concurrent conflicting sessions.
|
||||
ROBORTO_BROWSER_URL="http://127.0.0.1:18081/about"
|
||||
ROBORTO_BROWSER_URL="http://127.0.0.1:18081/contact"
|
||||
ROBORTO_READY_PORTS=(15001 18081)
|
||||
ROBORTO_READY_LABELS=(API Web)
|
||||
|
||||
Reference in New Issue
Block a user