Skip to content

Commit c92d3b7

Browse files
committed
Address PR comments
1 parent 187de76 commit c92d3b7

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

dev/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,14 @@ go run main.go serve \
149149
--database-url "postgres://postgres@localhost:5432/sdp_mtn?sslmode=disable"
150150
```
151151

152+
You can also run the TSS by using the `tss` command instead of `serve`.
153+
154+
```sh
155+
go run main.go tss \
156+
--env-file ./dev/.env.https-testnet \
157+
--database-url "postgres://postgres@localhost:5432/sdp_mtn?sslmode=disable"
158+
```
159+
152160
**Important Notes:**
153161
- Use `--env-file` to specify which configuration to load (e.g., `./dev/.env.https-testnet`)
154162
- Override `--database-url` to use `localhost:5432` instead of `db:5432` (Docker hostname)

tools/sdp-setup/internal/config/env.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,8 @@ func Write(cfg Config, path string) error {
261261

262262
if exampleMap, err := godotenv.Read(examplePath); err == nil {
263263
finalMap = exampleMap
264+
} else {
265+
fmt.Printf("Note: Could not load %s, generating minimal config\n", examplePath)
264266
}
265267

266268
// 3. Override with our configuration values

0 commit comments

Comments
 (0)