https://superuser.com/questions/230694/how-can-i-push-a-git-repository-to-a-folder-over-ssh or gitea
- Develop in monorepo
- Push to git server ( hosted on pre-prod server )
- Deploy as canary
Arch Debian OS https://www.postgresql.org/download/linux/debian/
HAProxy https://haproxy.debian.net/#distribution=Debian&release=bookworm&version=3.0\
Gitea https://about.gitea.com/
Nginx OR HAproxy
Applications hosted in /opt/simplestack
Postgres hosted on 3+ nodes per DC.
Apps hosted on 1+ servers.
Pre Prod hosted on 1 server. (git and pre-prod db)
2 Datacentres
Load Balancing by DNS round robin
create service run golang app. Simple wrapper that gives application a port number and ENV. LISTEN_PORT, possible HAproxy config.
sample service, write a simple hello world app.