You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+34-5Lines changed: 34 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -160,7 +160,36 @@ Types will need to be regenerated any time the `graphql.schema` is changed.
160
160
yarn run codegen
161
161
```
162
162
163
-
### 3. Run
163
+
### 3a. Run via [Tilt](https://tilt.dev/)
164
+
165
+
```bash
166
+
# Start tilt
167
+
tilt up
168
+
169
+
# Delete tilt resources
170
+
tilt down
171
+
```
172
+
173
+
#### Running against localnet
174
+
175
+
NOTE: 🚨 The [poktroll](https://github.com/pokt-network/poktroll) localnet includes pocketdex in its tilt environment. 🚨
176
+
177
+
If you need to run pocketdex against poktroll localnet, but can't use the poktroll repo's tilt environment for whatever reason, update (_but don't commit_) the `indexer_values_path` in the `Tiltfile`:
Dotenv files will be automatically created after the `yarn install` thanks to the `postinstall` script.
166
195
After that, feel free to modify them as you wish.
@@ -215,7 +244,7 @@ Or Stop & clean up (delete postgres data):
215
244
yarn run docker:clean:development
216
245
```
217
246
218
-
#### 3.1 Debugging, errors running & building
247
+
#### 3b.1 Debugging, errors running & building
219
248
220
249
If you're hitting errors with the above command, do a nuclear clean of all potential issues:
221
250
@@ -227,7 +256,7 @@ docker context use default
227
256
228
257
Now pick up from the `yarn run docker:build` step above.
229
258
230
-
#### 3.2 Using a pre-built image
259
+
#### 3b.2 Using a pre-built image
231
260
232
261
If you are unable to build locally, a pre-built image is available on Docker Hub: [bryanchriswhite/pocketdex-subquery-node:latest](https://hub.docker.com/r/bryanchriswhite/pocketdex-subquery-node).
233
262
@@ -252,7 +281,7 @@ services:
252
281
...
253
282
```
254
283
255
-
#### 3.3 Available Scripts breakdown
284
+
#### 3b.3 Available Scripts breakdown
256
285
257
286
*`preinstall` - Enforces the use of Yarn as the package manager.
258
287
*`postinstall` - Executes the `env:prepare` script after the installation process.
@@ -280,6 +309,6 @@ services:
280
309
*`docker:stop:<environment>` - Stops all active services for the specified environment without removing them.
281
310
*`docker:clean:<environment>` - Stops and removes all services, volumes, and networks for the specified environment.
282
311
283
-
#### 3.4 Using k8s
312
+
###3c. Using k8s
284
313
285
314
See the instructions in [docs/kubernetes.md](./docs/kubernetes.md) for deploying using Kubernetes.
0 commit comments