Update the code to run in debug mode.

This commit is contained in:
Tarun Jain 2022-02-03 10:17:31 +05:30
parent 5270d3de35
commit 4c22d00cf5
4 changed files with 9 additions and 3 deletions

View File

@ -19,7 +19,7 @@
"ng": "ng",
"rimraf": "rimraf",
"clean": "npm cache clean && npm run rimraf -- node_modules doc typings coverage wwwroot",
"start": "ng serve",
"start": "echo Starting... && ng serve",
"build:dev": "ng build",
"build:dev:watch": "npm run build:dev && ng build --watch",
"build:prod": "ng build --prod --aot --extract-css",

View File

@ -3,6 +3,12 @@
ARG NODE_IMAGE=node:12.0
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
WORKDIR /app
RUN apt-get update
RUN apt-get -y install curl gnupg
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
RUN apt-get -y install nodejs
RUN npm install
RUN npm -v
EXPOSE 80
FROM ${NODE_IMAGE} as node-build

View File

@ -125,7 +125,7 @@ public class Startup
// the root of the angular app. (Where the package.json lives)
spa.Options.SourcePath = "Client";
spa.Options.StartupTimeout = new TimeSpan(0, 15, 0);
if (env.IsDevelopment())
{

View File

@ -272,7 +272,7 @@ services:
webspa:
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://0.0.0.0:80
- IdentityUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
- PurchaseUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5202