Skip to content
This repository was archived by the owner on Oct 2, 2023. It is now read-only.

Commit 66f494f

Browse files
author
Савелій Савёнак
committed
Added 5001 Port, publish script edited, Native HTTPS turned off
1 parent 8d73179 commit 66f494f

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static void Main(string[] args)
5454
app.UseSwagger();
5555
app.UseSwaggerUI();
5656
}
57-
app.UseHttpsRedirection();
57+
//app.UseHttpsRedirection();
5858
app.MapControllers();
5959
app.Run();
6060
}

appsettings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"DatabaseName": "devdb"
1111
},
1212
"AllowedHosts": "*",
13+
"URLs": "http://localhost:5001",
1314
"JWTSecret": "SecretTopSepctruMineAyou12957392576134oefiolnj@ujka",
1415
"UseMail": false,
1516
"SMTPData": {

publish.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010

1111
version = file.getroot().find("PropertyGroup").find("Version")
1212
print("Generating version")
13-
print("Pattern: maj.min.[DAY].[MOUTH][LASTHOUR][MINUTES]")
13+
print("Pattern: maj.min.[MOUTH].[DAY][LASTHOUR][MINUTES]")
1414
print("0.1* alpha, 0.2* beta, 1.* release")
1515
print("selected pattern: " + pattern)
1616

1717
MAJ: int
1818
MIN: int
19-
DAYBUILD: int
19+
MOUTHBUILD: int
2020
if pattern == "alpha":
2121
MAJ = 0
2222
MIN = 1
@@ -28,9 +28,9 @@
2828
if pattern == "release":
2929
MAJ = 1
3030
MIN = 0
31-
DAYBUILD = datetime.datetime.now().day
32-
LATESTINFO = str(datetime.datetime.now().month) + str(datetime.datetime.now().hour)[1:] + str(datetime.datetime.now().minute)
33-
ALLVERSION = str(MAJ) + "." + str(MIN) + "." + str(DAYBUILD) + "." + LATESTINFO
31+
MOUTHBUILD = datetime.datetime.now().month
32+
LATESTINFO = str(datetime.datetime.now().day)+ str(datetime.datetime.now().hour)[1:] + str(datetime.datetime.now().minute)
33+
ALLVERSION = str(MAJ) + "." + str(MIN) + "." + str(MOUTHBUILD) + "." + LATESTINFO
3434
print(ALLVERSION)
3535
version.text = ALLVERSION
3636
file.write(filename)

0 commit comments

Comments
 (0)