File tree Expand file tree Collapse file tree 1 file changed +22
-8
lines changed
Expand file tree Collapse file tree 1 file changed +22
-8
lines changed Original file line number Diff line number Diff 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`
You can’t perform that action at this time.
0 commit comments