https://github.com/mapswipe/mapswipe-deploy
https://github.com/mapswipe/mapswipe-deploy
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mapswipe/mapswipe-deploy
- Owner: mapswipe
- Created: 2025-09-03T02:28:02.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2026-01-14T13:57:35.000Z (5 months ago)
- Last Synced: 2026-01-14T17:36:11.315Z (5 months ago)
- Language: HCL
- Size: 46.9 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## New release
- Update `.gitmodules` file to include the correct `branch` tags
- Run `scripts/sub-module-sync.sh` to refresh submodule references
- Commit the changes and push to the repository
## Setup
### Cloning the Repository
Most submodules use SSH URLs. To avoid setting up SSH keys, run this command to use HTTPS instead:
```bash
git config --global url."https://github.com/".insteadOf "git@github.com:"
```
Clone and pull all submodules
```bash
git clone git@github.com:mapswipe/mapswipe-deploy.git
cd mapswipe-deploy
git submodule update --init --recursive
```
### Environment Variables
Make 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
```bash
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.json
```
## Apply changes
The `task` tool is used to set up a pre-alias.
> https://taskfile.dev/
```bash
task --list-all
# Deploy all
task deploy
# Deploy web apps
task web-builds
# Deploy backend resources
task backend-deploy
# Deploy caddy
task caddy-deploy
```
### pgBackRest
Create "main" stanza
```bash
docker compose exec -u postgres postgres pgbackrest --stanza=main stanza-create
```
View backup info
```bash
docker compose exec -u postgres postgres pgbackrest --stanza=main info
```