黄贺彬 6 anos atrás
pai
commit
a2256c50bb

+ 1 - 1
TEAMModelOS.SmartClass/Program.cs

@@ -18,7 +18,7 @@ public static void Main(string[] args)
         }
 
         public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
-            WebHost.CreateDefaultBuilder(args)
+            WebHost.CreateDefaultBuilder(args).UseUrls("http://*:6000")
                 .UseStartup<Startup>();
     }
 }

+ 1 - 1
TEAMModelOS.SmartTeach/Program.cs

@@ -18,7 +18,7 @@ public static void Main(string[] args)
         }
 
         public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
-            WebHost.CreateDefaultBuilder(args)
+           WebHost.CreateDefaultBuilder(args).UseUrls("http://*:7000")
                 .UseStartup<Startup>();
     }
 }

+ 27 - 0
TEAMModelOS.SmartTeach/Properties/launchSettings.json

@@ -0,0 +1,27 @@
+{
+  "iisSettings": {
+    "windowsAuthentication": false,
+    "anonymousAuthentication": true,
+    "iisExpress": {
+      "applicationUrl": "http://localhost:59855/",
+      "sslPort": 0
+    }
+  },
+  "profiles": {
+    "IIS Express": {
+      "commandName": "IISExpress",
+      "launchBrowser": true,
+      "environmentVariables": {
+        "ASPNETCORE_ENVIRONMENT": "Development"
+      }
+    },
+    "TEAMModelOS.SmartTeach": {
+      "commandName": "Project",
+      "launchBrowser": true,
+      "environmentVariables": {
+        "ASPNETCORE_ENVIRONMENT": "Development"
+      },
+      "applicationUrl": "https://localhost:7001;http://localhost:7000"
+    }
+  }
+}

+ 1 - 1
TEAMModelOS.TeachZone/Program.cs

@@ -18,7 +18,7 @@ public static void Main(string[] args)
         }
 
         public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
-            WebHost.CreateDefaultBuilder(args)
+            WebHost.CreateDefaultBuilder(args).UseUrls("http://*:8000")
                 .UseStartup<Startup>();
     }
 }

+ 1 - 1
TEAMModelOS.TeachZone/Properties/launchSettings.json

@@ -21,7 +21,7 @@
       "environmentVariables": {
         "ASPNETCORE_ENVIRONMENT": "Development"
       },
-      "applicationUrl": "http://localhost:59858/"
+      "applicationUrl": "https://localhost:8001;http://localhost:8000"
     }
   }
 }

+ 1 - 10
TEAMModelOS.TeachZone/package.json

@@ -6,16 +6,7 @@
     "url": "https://habook.com.tw"
   },
   "license": "MIT",
-  "scripts": {
-    "dev": "cross-env ASPNETCORE_ENVIRONMENT=Development NODE_ENV=development dotnet run",
-    "build": "npm run build-vendor:prod && npm run build:prod",
-    "build:prod": "cross-env NODE_ENV=production webpack --progress --hide-modules",
-    "build-vendor:prod": "cross-env NODE_ENV=production webpack --config webpack.config.vendor.js --progress",
-    "build-vendor:dev": "cross-env NODE_ENV=development webpack --config webpack.config.vendor.js --progress",
-    "lint": "eslint -c ./.eslintrc.js ClientApp/**/*.js  ClientApp/**/*.vue  ClientApp/**/*.json webpack*.js",
-    "install": "npm run build-vendor:dev",
-    "update-packages": "npx npm-check -u"
-  },
+  "scripts": {},
   "dependencies": {
     "animate.css": "^3.7.0",
     "axios": "^0.18.0",