Files
intotheeast-com/.env.example
T
m038 fb28f09e0c test: add form config validator and HTTP integration test
test-config: static YAML validator for post-form.md — checks that the
add-page-by-form action name, pageconfig/pagefrontmatter blocks, and all
required fields are correctly wired. Fast, no server needed. Catches the
class of bug that caused silent post failures.

test-post: end-to-end HTTP test — logs in, submits the form, verifies an
entry.md was created on disk, then cleans up. Requires GRAV_TEST_USER and
GRAV_TEST_PASS in .env (see .env.example).

  make test-config   # fast, no credentials needed
  make test-post     # full e2e, needs .env credentials
  make test          # both

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-18 19:57:49 +02:00

27 lines
820 B
Bash

# SSH connection
REMOTE_USER=root
REMOTE_HOST=example.com
REMOTE_PORT=22
REMOTE_HOME=/home/example.com
# Server paths (override here if your setup differs from the Makefile defaults)
WEBROOT=/home/example.com/public_html
SITE_CONFIG_DIR=/home/example.com/site-config
# Grav
GRAV_VERSION=1.7.53
# Repos
USER_REPO=https://gitea.example.com/org/intotheeast-user.git
MAIN_REPO=https://gitea.example.com/org/travel-blog-intotheeast.git
# Gitea credentials — never commit these; only ever in .env (local) or ~/.env-project (server, temporary)
GITEA_HOST=gitea.example.com
GITEA_USER=deploy-user
GITEA_TOKEN=your-gitea-personal-access-token
# Test credentials — used by 'make test-post' (must be a valid Grav site login user)
GRAV_TEST_USER=mischa
GRAV_TEST_PASS=your-grav-password
GRAV_BASE_URL=http://localhost:8081