1
0
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:
Muhammad Auliya 2019-09-13 14:47:24 +07:00 committed by GitHub
commit 1924ac0e46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 1 deletions

13
Makefile Normal file
View 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

View File

@ -14,6 +14,14 @@ from terminal, move to grpcox directory, then run command
```shell
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

View File

@ -1,7 +1,6 @@
version: '3'
services:
grpcox:
network_mode: host
build: .
ports:
- "6969:6969"