Skip to content

Commit aee336f

Browse files
committed
readme.md updated
1 parent 9b9e2b7 commit aee336f

File tree

1 file changed

+22
-8
lines changed

1 file changed

+22
-8
lines changed

readme.md

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,27 @@ If you need help with clie use command `./godemon -help`
4040

4141
```
4242
{
43-
"commands": [
44-
{
45-
"name": "run",
46-
"path": "/home/nwagner/Desktop/godemon/api/",
47-
"file": "mod"
48-
}
49-
]
43+
"project": {
44+
"name": "api2",
45+
"platformOS": "linux",
46+
"platformArch": "amd64",
47+
"path": "/home/nwagner/Desktop/godemon/api/"
48+
},
49+
"commands": [
50+
{
51+
"name": "run",
52+
"path": "/home/nwagner/Desktop/godemon/api/",
53+
"file": "mod"
54+
},
55+
{
56+
"name": "run-single-file",
57+
"path": "/home/nwagner/Desktop/godemon/api/main.go",
58+
"option": "file"
59+
}
60+
]
5061
}
5162
```
52-
3. Now use command: `godemon -cnf=cnf -command=<command-name>`
63+
3. Now use command: `godemon -cnf=cnf -command=<command-name>` or if you want to make full binary
64+
file you need to use command: `godemon -cnf=deploy`. This will create
65+
binary file with env variables. Deploy is using command - `env GOOS=project.platformOS
66+
GOARCH=projet.platformArch go build -o project.name`

0 commit comments

Comments
 (0)