Skip to content

Commit fcb380b

Browse files
committed
fix makefile to not accidentally rebuild-expensive-builds
1 parent 7e8a258 commit fcb380b

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

.tmuxinator.yml

-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ on_project_start:
66
- sleep 5
77
- make create-db
88
- make create-schema
9-
- make build-prover
10-
- make build-monitor
119

1210
windows:
1311
- eth_pg_logs:
@@ -27,7 +25,6 @@ windows:
2725
NODE_HOST=localhost
2826
NODE_PORT=8545
2927
JSON_RPC_PORT=3000
30-
RISC0_DEV_MODE=true
3128
RUST_LOG=debug
3229
make run-prover-server
3330
- >

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ run-prover-server: ## Run the prover server
168168
JSON_RPC_PORT=$(PROVER_PORT) \
169169
RISC0_DEV_MODE=${RISC0_DEV_MODE} \
170170
IMAGE_ID_CONTRACT=$(IMAGE_ID_CONTRACT) \
171-
cargo run -p monitor-server --bin prover-server -F local_prover $(CARGO_BUILD_OPTIONS)
171+
./target/release/prover-server
172172

173173
run-monitor-server: build-monitor ## Run the monitor server
174174
DB_HOST=$(DB_HOST) \
@@ -182,7 +182,7 @@ run-monitor-server: build-monitor ## Run the monitor server
182182
PROVER_HOST=$(PROVER_HOST) \
183183
PROVER_PORT=$(PROVER_PORT) \
184184
JSON_RPC_PORT=$(MONITOR_PORT) \
185-
cargo run -p monitor-server --bin monitor-server $(CARGO_BUILD_OPTIONS)
185+
./target/release/monitor-server
186186

187187
fetch-image-id-contract: ## Fetch the ImageID contract from the monitor server
188188
@curl -f -s -XPOST -H "Content-Type: application/json" \

README.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,17 @@ Two tmuxinator configurations are provided for development. Both configurations
2525
#### 1. Local Development (`.tmuxinator.yml`)
2626
Run services locally with cargo:
2727
```bash
28-
tmuxinator start -p .tmuxinator.yml
28+
make build-monitor
29+
make build-prover # Or make make build-prover-cuda for gpu
30+
RISC0_DEV_MODE={true/false} tmuxinator start -p .tmuxinator.yml
2931
```
3032

3133
#### 2. Docker Development (`.tmuxinator.docker.yml`)
34+
make build-monitor
35+
make build-prover # Or make make build-prover-cuda for gpu
3236
Run all services in Docker containers:
3337
```bash
34-
tmuxinator start -p .tmuxinator.docker.yml
38+
RISC0_DEV_MODE={true/false} tmuxinator start -p .tmuxinator.docker.yml
3539
```
3640

3741
## Testing
@@ -61,4 +65,4 @@ You should see the deploy address of the TTC contract printed to the console. Th
6165
```
6266

6367
You can control the log level via `RUST_LOG`. This script creates checkpoints, writing the relevant state to `./deployments/<ttc-contract-address>`. If the script errors or halts at any
64-
time, you can re-run from the last checkpoint using the same command as you used to start.
68+
time, you can re-run from the last checkpoint using the same command as you used to start.

0 commit comments

Comments
 (0)