Skip to content

Commit

Permalink
improve tutorial to use 'spkg' file in last prod deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
sduchesneau committed Nov 28, 2023
1 parent 35555a2 commit 04bde7d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docs/tutorials/substreams-sql.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,12 +299,16 @@ substreams alpha service deploy substreams.sql.yaml --prod

* See that the database starts correctly and that the tables defined in `dbt` are being created correctly

* When you are happy with the results, verify or bump the `version` field in `substreams.sql.yaml`, then run `substreams pack substreams.sql.yaml` to generate the .spkg file.
* When you are happy with the results, verify or bump the `version` field in `substreams.sql.yaml`, you can generate the `cryptopunks-v0.1.0.spkg` file.

```bash
substreams pack substreams.sql.yaml
```

## Deploy your production package to the "hosted prod" environment

```bash
substreams alpha service deploy substreams.sql.yaml -e https://deploy.streamingfast.io --prod
substreams alpha service deploy cryptopunks-v0.1.0.spkg -e https://deploy.streamingfast.io --prod
```

The production environment does not allow direct SQL access at the moment, so your apps will need to access the data to either the `rest` frontend or the `postgraphile` frontend.
The production environment does not allow direct SQL access at the moment, so your apps will need to access the data to either the `rest` frontend or the `postgraphile` frontend.

0 comments on commit 04bde7d

Please sign in to comment.