Spaces:
Running
Running
Florin Bobiș
commited on
Commit
•
c7e7da5
1
Parent(s):
d42c7d8
port 7860
Browse files- Program.cs +4 -0
Program.cs
CHANGED
@@ -2,6 +2,10 @@ using System.Text.Json;
|
|
2 |
using Microsoft.EntityFrameworkCore;
|
3 |
|
4 |
var builder = WebApplication.CreateBuilder(args);
|
|
|
|
|
|
|
|
|
5 |
|
6 |
builder.Services.AddDbContext<QuoteDbContext>(options =>
|
7 |
options.UseSqlite("Data Source=quotes.db"));
|
|
|
2 |
using Microsoft.EntityFrameworkCore;
|
3 |
|
4 |
var builder = WebApplication.CreateBuilder(args);
|
5 |
+
builder.WebHost.ConfigureKestrel(serverOptions =>
|
6 |
+
{
|
7 |
+
serverOptions.Listen(System.Net.IPAddress.Any, 7860); // Listen on all network interfaces on port 5000
|
8 |
+
});
|
9 |
|
10 |
builder.Services.AddDbContext<QuoteDbContext>(options =>
|
11 |
options.UseSqlite("Data Source=quotes.db"));
|