Commit 0981599
committed
Add ability to configure environment variables for Node instances, plus auto-populate NODE_ENV based on IHostingEnvironment when possible. Fixes aspnet#230
1 parent 56cb898 commit 0981599Copy full SHA for 0981599
File tree
Expand file treeCollapse file tree
7 files changed
+62
-24
lines changedOpen diff view settings
Filter options
- src
- Microsoft.AspNetCore.NodeServices
- Configuration
- HostingModels
- Microsoft.AspNetCore.SpaServices
- Prerendering
- Webpack
Expand file treeCollapse file tree
7 files changed
+62
-24
lines changedOpen diff view settings
Collapse file
src/Microsoft.AspNetCore.NodeServices/Configuration/Configuration.cs
Copy file name to clipboardExpand all lines: src/Microsoft.AspNetCore.NodeServices/Configuration/Configuration.cs+6-3Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
20 | 20 | |
21 | 21 | |
22 | 22 | |
| 23 | + |
23 | 24 | |
24 | 25 | |
25 | | - |
26 | 26 | |
27 | 27 | |
28 | 28 | |
| 29 | + |
| 30 | + |
| 31 | + |
29 | 32 | |
30 | 33 | |
31 | 34 | |
| ||
69 | 72 | |
70 | 73 | |
71 | 74 | |
72 | | - |
| 75 | + |
73 | 76 | |
74 | 77 | |
75 | 78 | |
76 | | - |
| 79 | + |
77 | 80 | |
78 | 81 | |
79 | 82 | |
|
Collapse file
src/Microsoft.AspNetCore.NodeServices/Configuration/NodeServicesOptions.cs
Copy file name to clipboardExpand all lines: src/Microsoft.AspNetCore.NodeServices/Configuration/NodeServicesOptions.cs+18Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
| 2 | + |
2 | 3 | |
3 | 4 | |
4 | 5 | |
| ||
22 | 23 | |
23 | 24 | |
24 | 25 | |
| 26 | + |
25 | 27 | |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
26 | 44 | |
27 | 45 | |
Collapse file
src/Microsoft.AspNetCore.NodeServices/HostingModels/HttpNodeInstance.cs
Copy file name to clipboardExpand all lines: src/Microsoft.AspNetCore.NodeServices/HostingModels/HttpNodeInstance.cs+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
| 2 | + |
2 | 3 | |
3 | 4 | |
4 | 5 | |
| ||
34 | 35 | |
35 | 36 | |
36 | 37 | |
37 | | - |
| 38 | + |
38 | 39 | |
39 | 40 | |
40 | 41 | |
| ||
43 | 44 | |
44 | 45 | |
45 | 46 | |
| 47 | + |
46 | 48 | |
47 | 49 | |
48 | 50 | |
|
Collapse file
src/Microsoft.AspNetCore.NodeServices/HostingModels/OutOfProcessNodeInstance.cs
Copy file name to clipboardExpand all lines: src/Microsoft.AspNetCore.NodeServices/HostingModels/OutOfProcessNodeInstance.cs+27-7Lines changed: 27 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
| 2 | + |
2 | 3 | |
3 | 4 | |
4 | 5 | |
| ||
46 | 47 | |
47 | 48 | |
48 | 49 | |
| 50 | + |
49 | 51 | |
50 | 52 | |
51 | 53 | |
| ||
58 | 60 | |
59 | 61 | |
60 | 62 | |
61 | | - |
| 63 | + |
62 | 64 | |
63 | 65 | |
64 | 66 | |
| ||
99 | 101 | |
100 | 102 | |
101 | 103 | |
102 | | - |
| 104 | + |
103 | 105 | |
104 | 106 | |
105 | 107 | |
| ||
122 | 124 | |
123 | 125 | |
124 | 126 | |
| 127 | + |
| 128 | + |
| 129 | + |
| 130 | + |
| 131 | + |
| 132 | + |
| 133 | + |
| 134 | + |
| 135 | + |
| 136 | + |
| 137 | + |
| 138 | + |
| 139 | + |
125 | 140 | |
126 | 141 | |
127 | 142 | |
| ||
130 | 145 | |
131 | 146 | |
132 | 147 | |
133 | | - |
134 | | - |
135 | | - |
136 | | - |
137 | | - |
| 148 | + |
138 | 149 | |
139 | 150 | |
140 | 151 | |
| ||
179 | 190 | |
180 | 191 | |
181 | 192 | |
| 193 | + |
| 194 | + |
| 195 | + |
| 196 | + |
| 197 | + |
| 198 | + |
| 199 | + |
| 200 | + |
| 201 | + |
182 | 202 | |
183 | 203 | |
184 | 204 | |
|
Collapse file
src/Microsoft.AspNetCore.NodeServices/HostingModels/SocketNodeInstance.cs
Copy file name to clipboardExpand all lines: src/Microsoft.AspNetCore.NodeServices/HostingModels/SocketNodeInstance.cs+4-1Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
| 2 | + |
2 | 3 | |
3 | 4 | |
4 | 5 | |
| ||
38 | 39 | |
39 | 40 | |
40 | 41 | |
41 | | - |
| 42 | + |
| 43 | + |
42 | 44 | |
43 | 45 | |
44 | 46 | |
| ||
47 | 49 | |
48 | 50 | |
49 | 51 | |
| 52 | + |
50 | 53 | |
51 | 54 | |
52 | 55 | |
|
Collapse file
src/Microsoft.AspNetCore.SpaServices/Prerendering/PrerenderTagHelper.cs
Copy file name to clipboardExpand all lines: src/Microsoft.AspNetCore.SpaServices/Prerendering/PrerenderTagHelper.cs+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
36 | 36 | |
37 | 37 | |
38 | 38 | |
39 | | - |
| 39 | + |
40 | 40 | |
41 | 41 | |
42 | 42 | |
|
Collapse file
src/Microsoft.AspNetCore.SpaServices/Webpack/WebpackDevMiddleware.cs
Copy file name to clipboardExpand all lines: src/Microsoft.AspNetCore.SpaServices/Webpack/WebpackDevMiddleware.cs+3-11Lines changed: 3 additions & 11 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
35 | 35 | |
36 | 36 | |
37 | 37 | |
38 | | - |
39 | | - |
40 | | - |
41 | | - |
42 | | - |
43 | | - |
44 | | - |
45 | | - |
46 | | - |
47 | | - |
| 38 | + |
| 39 | + |
48 | 40 | |
49 | 41 | |
50 | 42 | |
| ||
55 | 47 | |
56 | 48 | |
57 | 49 | |
58 | | - |
| 50 | + |
59 | 51 | |
60 | 52 | |
61 | 53 | |
|
0 commit comments