mirror of
https://github.com/gusaul/grpcox.git
synced 2024-11-17 06:26:56 +00:00
Merge pull request #9 from gusaul/fix_running_method
Fix running method
This commit is contained in:
commit
1924ac0e46
13
Makefile
Normal file
13
Makefile
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
usage: FORCE
|
||||||
|
exit 1
|
||||||
|
|
||||||
|
FORCE:
|
||||||
|
|
||||||
|
include config.env
|
||||||
|
export $(shell sed 's/=.*//' config.env)
|
||||||
|
|
||||||
|
start: FORCE
|
||||||
|
@echo " >> building..."
|
||||||
|
@mkdir -p log
|
||||||
|
@go build
|
||||||
|
@./grpcox
|
|
@ -14,6 +14,14 @@ from terminal, move to grpcox directory, then run command
|
||||||
```shell
|
```shell
|
||||||
docker-compose up
|
docker-compose up
|
||||||
```
|
```
|
||||||
|
if you're using docker and want to connect gRPC on your local machine, then use
|
||||||
|
<br/>`host.docker.internal:<your gRPC port>` instead of `localhost`
|
||||||
|
|
||||||
|
### Golang
|
||||||
|
if you have golang installed on your local machine, just run command
|
||||||
|
```shell
|
||||||
|
make start
|
||||||
|
```
|
||||||
|
|
||||||
configure app preferences by editing `config.env` file
|
configure app preferences by editing `config.env` file
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
version: '3'
|
version: '3'
|
||||||
services:
|
services:
|
||||||
grpcox:
|
grpcox:
|
||||||
network_mode: host
|
|
||||||
build: .
|
build: .
|
||||||
ports:
|
ports:
|
||||||
- "6969:6969"
|
- "6969:6969"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user