Skip to content

Commit ab89568

Browse files
committed
Adds the deploy to the readme
1 parent 0b3a670 commit ab89568

File tree

2 files changed

+39
-2
lines changed

2 files changed

+39
-2
lines changed

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,26 @@ A RESTful API for managing your Postgres. Fetch tables, add roles, and run queri
44

55
## Docs
66

7-
https://supabase.github.io/pg-api/
7+
All docs https://supabase.github.io/pg-api/
8+
9+
A trial API is set up here: https://pg-api.fly.dev/
810

911
## Quickstart
1012

11-
Run any of the bin files in the `bin` directory
13+
Set the following ENV VARS:
14+
15+
```bash
16+
PG_API_PORT=8080
17+
PG_API_DB_HOST="postgres"
18+
PG_API_DB_NAME="postgres"
19+
PG_API_DB_USER="postgres"
20+
PG_API_DB_PORT=5432
21+
PG_API_DB_PASSWORD="postgres"
22+
PG_API_DB_SSL=false
23+
```
24+
25+
Then run any of the bin files in the `bin` directory
26+
1227
```
1328
./bin/start-linux
1429
./bin/start-macos

fly.toml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
app = "pg-api"
2+
3+
4+
[[services]]
5+
internal_port = 8080
6+
protocol = "tcp"
7+
8+
[services.concurrency]
9+
hard_limit = 25
10+
soft_limit = 20
11+
12+
[[services.ports]]
13+
handlers = ["http"]
14+
port = "80"
15+
16+
[[services.ports]]
17+
handlers = ["tls", "http"]
18+
port = "443"
19+
20+
[[services.tcp_checks]]
21+
interval = 10000
22+
timeout = 2000

0 commit comments

Comments
 (0)