Commit 527c30f
authored
Devops tweaks in Vagrantfile and package.json (#43)
Make the following tweaks to the build system files (mostly `Vagrantfile`):
- Forward port 9229 from the VM. This allows attaching a debugger to the Node server.
- Add a corresponding `serve-debug` script, to run the server with debugging enabled.
- Disable the redundant `/vagrant` sharefolder; we already share the relevant contents via `/cplayground`.
- Run the provisioner which loads the cplayground kernel module every boot. This makes the development VM resilient against `vagrant halt` / `vagrant up`.
It looks like the Node debugger has potential for [live reloading](https://www.jetbrains.com/help/webstorm/running-and-debugging-node-js.html#nodemon), which might be nice. (I have not investigated.)
Disclaimer: I'm currently having issues attaching to the Node instance with this tweak. I think it's a me problem as I'm pretty sure I've used a config very like this successfully before, but it's probably worth testing.1 parent 297a466 commit 527c30f
2 files changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
96 | | - | |
97 | | - | |
| 98 | + | |
| 99 | + | |
98 | 100 | | |
99 | 101 | | |
100 | 102 | | |
| |||
104 | 106 | | |
105 | 107 | | |
106 | 108 | | |
| 109 | + | |
107 | 110 | | |
| 111 | + | |
| 112 | + | |
108 | 113 | | |
109 | 114 | | |
110 | 115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
0 commit comments