Skip to content

Commit

Permalink
Fixing Makefile's start script (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
sameh-farouk authored Apr 26, 2023
1 parent 81c5f98 commit 8c91255
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions grid-proxy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,18 @@ db-stop: ## Stop the database container if running
docker stop postgres; \
fi

start: ## Start the proxy server
server-start: ## Start the proxy server (Args: `m=<MNEMONICS>`)
@go run cmds/proxy_server/main.go \
-no-cert \
--address :8080 \
--log-level debug \
--postgres-host $(PQ_HOST) \
--postgres-db tfgrid-graphql \
--postgres-password postgres \
--postgres-user postgres
--postgres-user postgres \
--mnemonics "$(m)" ;

restart: db-stop db-start sleep db-fill start ## Full start of the database and the server
all-start: db-stop db-start sleep db-fill server-start ## Full start of the database and the server (Args: `m=<MNEMONICS>`)

sleep:
@sleep 5
Expand Down
2 changes: 1 addition & 1 deletion grid-proxy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ To start the services for development or testing make sure first you have all th
- For a quick test explorer server.

```bash
make restart
make all-start e=<MNEMONICS>
```

Now you can access the server at [:8080](http://loaclhost:8080)
Expand Down

0 comments on commit 8c91255

Please sign in to comment.