Skip to content

Commit

Permalink
commit wrangler.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
pabueco committed Jan 29, 2024
1 parent 3caf84e commit 3d97c84
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
build
node_modules
target
wrangler.toml
.dev.vars
dist
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,15 @@ $ npm i -g wrangler

Then, run `wrangler login` and follow the instructions.

2. Clone `.dev.vars` and `wrangler.toml`
1. Clone `.dev.vars`

Both example files are provided, prefixed with an underscore.
Duplicate both files and remove the underscore.
The example file is prefixed with an underscore.

3. Start postgres (and pgbouncer)
```sh
$ cp _.dev.vars .dev.vars
```

1. Start postgres (and pgbouncer)

Run `docker compose up --wait` to start postgres and pgbouncer.
Pgbouncer is used to pool connections to the database, which is required for serverless.
Expand Down Expand Up @@ -126,7 +129,6 @@ It might be a good idea to do this in `.dev.vars` and comment out each line -- j
2. Deploy the worker

```console
$ cp _wrangler.toml wrangler.toml # copy the example wrangler.toml
$ wrangler login # login to Cloudflare
$ wrangler deploy # deploy the worker
# for each key and value of PG_*, run the following command
Expand Down
1 change: 1 addition & 0 deletions _.dev.vars
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ PG_USER = "admin"
PG_PASSWORD = "securepassword"
PG_HOST = "localhost"
PG_DATABASE = "benchmarks"
FRONTEND_URL = "http://localhost:3000"
File renamed without changes.

0 comments on commit 3d97c84

Please sign in to comment.