fix: remove hardcoded GW_URL from Dockerfile and staging manifest
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 4m15s
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 4m15s
GW_URL/GwUrl env vars were baked into the Dockerfile (ENV) and the staging K8s manifest, overriding appsettings.*.json at runtime. This meant merging to production still used the staging CMS URL. Now only ASPNETCORE_ENVIRONMENT is set in the manifest; the correct GwUrl is read from appsettings.Staging.json or appsettings.Production.json depending on the environment — as intended. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -28,10 +28,6 @@ spec:
|
|||||||
env:
|
env:
|
||||||
- name: ASPNETCORE_ENVIRONMENT
|
- name: ASPNETCORE_ENVIRONMENT
|
||||||
value: "Staging"
|
value: "Staging"
|
||||||
- name: GW_URL
|
|
||||||
value: "https://cms.se.kbs1.ir"
|
|
||||||
- name: GwUrl
|
|
||||||
value: "https://cms.se.kbs1.ir"
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: "256Mi"
|
memory: "256Mi"
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ COPY ["FrontOffice.Main/staging-ca.crt", "/usr/local/share/ca-certificates/stagi
|
|||||||
RUN update-ca-certificates
|
RUN update-ca-certificates
|
||||||
|
|
||||||
ENV ASPNETCORE_URLS=http://+:80
|
ENV ASPNETCORE_URLS=http://+:80
|
||||||
ENV GW_URL=https://cms.se.kbs1.ir
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
ENTRYPOINT ["dotnet", "FrontOffice.Main.dll"]
|
ENTRYPOINT ["dotnet", "FrontOffice.Main.dll"]
|
||||||
|
|||||||
Reference in New Issue
Block a user