Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aoirint/live_inbox_hasura
live_inbox_appのデータベース
https://github.com/aoirint/live_inbox_hasura
Last synced: about 1 month ago
JSON representation
live_inbox_appのデータベース
- Host: GitHub
- URL: https://github.com/aoirint/live_inbox_hasura
- Owner: aoirint
- License: mit
- Created: 2023-12-19T07:41:33.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-19T07:56:00.000Z (about 1 year ago)
- Last Synced: 2023-12-20T14:24:15.437Z (about 1 year ago)
- Language: PLpgSQL
- Homepage:
- Size: 46.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# live_inbox_hasura
## Development
```shell
sudo docker compose up -dhasura --project "$PWD/hasura" --envfile "$PWD/.env" console
hasura --project "$PWD/hasura" --envfile "$PWD/.env.production" console
```## Apply migrations for production
```shell
hasura --project "$PWD/hasura" --envfile "$PWD/.env.production" migrate apply --all-databases
hasura --project "$PWD/hasura" --envfile "$PWD/.env.production" metadata apply
```## Backup & Restore
For Docker Desktop, remove `sudo`.
```shell
mkdir backupsDUMP_SQL=$(sudo docker compose exec postgres pg_dump -U postgres --schema public --no-owner --no-acl --data-only --disable-triggers) && echo "$DUMP_SQL" > backups/dump_$(date -u "+%Y-%m-%d_%H-%M-%S.%3N")Z.sql
cat backups/dump_2023-01-01_00-00-00.000Z.sql | sudo docker compose exec -T postgres psql -U postgres --single-transaction
```