- Update
.gitmodulesfile to include the correctbranchtags - Run
scripts/sub-module-sync.shto refresh submodule references - Commit the changes and push to the repository
Most submodules use SSH URLs. To avoid setting up SSH keys, run this command to use HTTPS instead:
git config --global url."https://github.com/".insteadOf "[email protected]:"Clone and pull all submodules
git clone [email protected]:mapswipe/mapswipe-deploy.git
cd mapswipe-deploy
git submodule update --init --recursiveMake sure these environment files are in place:
- .env (based on
.env.sample) - env/backend.env
- env/community-dashboard.env
- env/manager-dashboard.env
- secrets/pgbackrest_gc_service_account_key.json
cp .env.sample .env
touch env/backend.env
touch env/community-dashboard.env
touch env/manager-dashboard.env
touch secrets/pgbackrest_gc_service_account_key.jsonThe task tool is used to set up a pre-alias.
task --list-all
# Deploy all
task deploy
# Deploy web apps
task web-builds
# Deploy backend resources
task backend-deploy
# Deploy caddy
task caddy-deployCreate "main" stanza
docker compose exec -u postgres postgres pgbackrest --stanza=main stanza-createView backup info
docker compose exec -u postgres postgres pgbackrest --stanza=main info