Skip to content

Commit bb256c8

Browse files
committed
Add development + debugging docker configs
1 parent 15a831b commit bb256c8

21 files changed

Lines changed: 4092 additions & 366 deletions

File tree

‎.gitignore‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
**/node_modules
22
*.un~
3-
*.json~
3+
*.json~
4+
5+
.DS_Store
6+
**/tmp
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
root = "."
2+
testdata_dir = "testdata"
3+
tmp_dir = "tmp"
4+
5+
[build]
6+
args_bin = []
7+
bin = "./tmp/main"
8+
cmd = "go build -o ./tmp/main ."
9+
delay = 0
10+
exclude_dir = ["assets", "tmp", "vendor", "testdata"]
11+
exclude_file = []
12+
exclude_regex = ["_test.go"]
13+
exclude_unchanged = false
14+
follow_symlink = false
15+
full_bin = ""
16+
include_dir = []
17+
include_ext = ["go", "tpl", "tmpl", "html"]
18+
include_file = []
19+
kill_delay = "0s"
20+
log = "build-errors.log"
21+
rerun = false
22+
rerun_delay = 500
23+
send_interrupt = false
24+
stop_on_error = false
25+
26+
[color]
27+
app = ""
28+
build = "yellow"
29+
main = "magenta"
30+
runner = "green"
31+
watcher = "cyan"
32+
33+
[log]
34+
main_only = false
35+
time = false
36+
37+
[misc]
38+
clean_on_exit = false
39+
40+
[screen]
41+
clear_on_rebuild = false
42+
keep_scroll = true
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package test
2+
3+
import "testing"
4+
5+
func TestOneEqualsOne(t *testing.T) {
6+
val := 1
7+
if val != 1 {
8+
t.Errorf("1 != %d; want 1", val)
9+
}
10+
}

‎05-example-web-application/api-node/Makefile‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1+
DATABASE_URL=postgres://postgres:foobarbaz@localhost:5432/postgres
2+
13
.PHONY: run-local
24
run-local:
3-
DATABASE_URL=postgres://postgres:foobarbaz@localhost:5432/postgres \
4-
node ./src/index.js
5+
DATABASE_URL=${DATABASE_URL} npm run dev
6+
7+
.PHONY: run-local-debug
8+
run-local-debug:
9+
DATABASE_URL=${DATABASE_URL} npm run debug
510

611
.PHONY: build-naive
712
build-naive:

0 commit comments

Comments
 (0)