File tree 5 files changed +32
-5
lines changed
SmartHotel360.WebsiteFunction
5 files changed +32
-5
lines changed Original file line number Diff line number Diff line change 62
62
"type" : " Microsoft.Web/sites" ,
63
63
"kind" : " functionapp" ,
64
64
"name" : " [variables('function_name')]" ,
65
- "apiVersion" : " 2016-03 -01" ,
65
+ "apiVersion" : " 2016-08 -01" ,
66
66
"location" : " [parameters('location')]" ,
67
67
"properties" : {
68
68
"name" : " [variables('function_name')]" ,
92
92
"name" : " WEBSITE_NODE_DEFAULT_VERSION" ,
93
93
"value" : " 8.11.1"
94
94
}
95
- ]
95
+ ],
96
+ "cors" : {
97
+ "allowedOrigins" : [" *" ]
98
+ }
96
99
},
97
100
"clientAffinityEnabled" : false ,
98
101
"reserved" : false
Original file line number Diff line number Diff line change
1
+ ** /.dockerignore
2
+ ** /.env
3
+ ** /.git
4
+ ** /.gitignore
5
+ ** /.vs
6
+ ** /.vscode
7
+ ** /* . * proj.user
8
+ ** /azds.yaml
9
+ ** /charts
10
+ ** /bin
11
+ ** /obj
12
+ ** /Dockerfile
13
+ ** /Dockerfile.develop
14
+ ** /docker-compose.yml
15
+ ** /docker-compose. * .yml
16
+ ** /* .dbmdl
17
+ ** /* .jfm
18
+ ** /secrets.dev.yaml
19
+ ** /values.dev.yaml
20
+ ** /.toolstarget
Original file line number Diff line number Diff line change @@ -3,8 +3,9 @@ WORKDIR /app
3
3
EXPOSE 80
4
4
5
5
FROM microsoft/dotnet:2.2.100-preview1-sdk-alpine AS build
6
+ ENV BuildingDocker true
6
7
WORKDIR /src
7
- COPY SmartHotel360.PublicWeb .csproj .
8
+ COPY SmartHotel360.Website .csproj .
8
9
RUN dotnet restore
9
10
COPY . .
10
11
RUN dotnet build -c Release -o /webapp
@@ -28,4 +29,4 @@ FROM base AS final
28
29
WORKDIR /app
29
30
COPY --from=publish /webapp .
30
31
COPY --from=node /src/wwwroot ./wwwroot
31
- ENTRYPOINT ["dotnet" , "SmartHotel360.PublicWeb .dll" ]
32
+ ENTRYPOINT ["dotnet" , "SmartHotel360.Website .dll" ]
Original file line number Diff line number Diff line change 52
52
</Target >
53
53
54
54
55
- <Target Name =" PublishRunWebpack" AfterTargets =" ComputeFilesToPublish" >
55
+ <Target Name =" PublishRunWebpack" AfterTargets =" ComputeFilesToPublish" Condition = " '$(BuildingDocker)' == '' " >
56
56
57
57
<Exec WorkingDirectory =" $(SpaRoot)" Command =" npm install" />
58
58
<Exec WorkingDirectory =" $(SpaRoot)" Command =" npm rebuild node-sass" />
Original file line number Diff line number Diff line change 11
11
"MicrosoftVisionNumTags" : " 10" ,
12
12
"AzureSignalRConnectionString" : " <Connection String to the SignalR Service instance>" ,
13
13
"FUNCTIONS_WORKER_RUNTIME" : " dotnet"
14
+ },
15
+ "Host" : {
16
+ "CORS" : " *"
14
17
}
15
18
}
You can’t perform that action at this time.
0 commit comments