forked from aws-samples/opsworks-windows-demo-nodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
web.config.erb
31 lines (29 loc) · 1004 Bytes
/
web.config.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<configuration>
<system.webServer>
<handlers>
<add name="iisnode" path="index.js" verb="*" modules="iisnode" />
</handlers>
<iisnode nodeProcessCommandLine=""%programfiles(x86)%\nodejs\node.exe""
watchedFiles="*.js;node_modules\*;routes\*.js;views\*.jade;middleware\*.js" />
<rewrite>
<rules>
<rule name="hello">
<match url="/*" />
<action type="Rewrite" url="/index.js" />
</rule>
</rules>
</rewrite>
</system.webServer>
<appSettings>
<% if @environment %>
<% @environment.each do |key,value| %>
<add key="<%= key %>" value="<%= value %>" />
<% end %>
<% end %>
<%if @settings %>
<% @settings.each do |key,value| %>
<add key="<%= key %>" value="<%= value %>" />
<% end %>
<% end %>
</appSettings>
</configuration>