Bet on sports events with your friends and have fun! Application created with full stack Gleam.
- Gleam 80.6%
- PLpgSQL 18.8%
- JavaScript 0.2%
- Dockerfile 0.2%
- Shell 0.1%
Bettor
Deploying / Updating the app
# Run a manual backup before deploying to ensure data is safe
podman exec borgmatic /usr/local/bin/borgmatic --stats -v 0 2>&1
# Clean up stale network namespace references left over from previous containers
# (prevents orphaned `iptables`/`ip6tables` DNAT rules that break routing after a reboot)
podman container cleanup --all
# Bring down all containers and flush all `netavark` network rules cleanly
podman compose -f compose.yaml -f compose.production.yaml down
# Rebuild and start all containers with fresh network rules
podman compose -f compose.yaml -f compose.production.yaml up -d --build
Borgmatic backups
Running the container for the first time
When you run the container for the first time, you'll need to execute into the container and run a command to initialize the repository in the directory you've specified in your docker configuration:
podman exec -it borgmatic /bin/sh
borgmatic init --encryption repokey
In addition, it may be a good idea to manually perform a backup to ensure everything performs as expected:
podman exec -it borgmatic /bin/sh
borgmatic --stats -v 1 --files
Seeding the database with data
cat <filename> | podman exec -i postgres psql -U postgres -d bettor_app -v email='<user-email>'