Browse Source

listen on 0.0.0.0; added prod and dev json config files

tags/v0.1.0
Robin Thoni 8 years ago
parent
commit
f0076b6e7e

+ 1
- 1
WebTest/Program.cs View File

@@ -14,7 +14,7 @@ namespace WebTest
14 14
             var host = new WebHostBuilder()
15 15
                 .UseKestrel()
16 16
                 .UseContentRoot(Directory.GetCurrentDirectory())
17
-                .UseUrls("http://localhost:8080")
17
+                .UseUrls("http://0.0.0.0:8080")
18 18
                 .UseIISIntegration()
19 19
                 .UseStartup<Startup>()
20 20
                 .Build();

+ 5
- 0
WebTest/appsettings.Development.json View File

@@ -0,0 +1,5 @@
1
+{
2
+    "ConnectionStrings": {
3
+        "default":  "User ID=dev;Password=dev;Host=localhost;Port=5432;Database=luticate2_utils;Pooling=true;"
4
+    }
5
+}

+ 5
- 0
WebTest/appsettings.Production.json View File

@@ -0,0 +1,5 @@
1
+{
2
+    "ConnectionStrings": {
3
+        "default":  "User ID=POSTGRES_USER;Password=POSTGRES_PASSWORD;Host=POSTGRES_HOST;Port=POSTGRES_PORT;Database=POSTGRES_DB;Pooling=true;"
4
+    }
5
+}

+ 7
- 7
WebTest/appsettings.json View File

@@ -1,10 +1,10 @@
1 1
 {
2
-  "Logging": {
3
-    "IncludeScopes": false,
4
-    "LogLevel": {
5
-      "Default": "Debug",
6
-      "System": "Information",
7
-      "Microsoft": "Information"
2
+    "Logging": {
3
+        "IncludeScopes": false,
4
+            "LogLevel": {
5
+                "Default": "Debug",
6
+                "System": "Information",
7
+                "Microsoft": "Information"
8
+        }
8 9
     }
9
-  }
10 10
 }

Loading…
Cancel
Save