REORG
This commit is contained in:
parent
8d68ee380a
commit
45514010f2
3505 changed files with 154 additions and 523 deletions
35
.vscode/launch.json
vendored
35
.vscode/launch.json
vendored
|
|
@ -17,13 +17,13 @@
|
||||||
"console": "internalConsole"
|
"console": "internalConsole"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "web",
|
"name": "org",
|
||||||
"type": "coreclr",
|
"type": "coreclr",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"preLaunchTask": "build",
|
"preLaunchTask": "build",
|
||||||
"program": "${workspaceFolder}/src/Yavsc/bin/Debug/net9.0/Yavsc.dll",
|
"program": "${workspaceFolder}/src/Org/bin/Debug/net9.0/Org.dll",
|
||||||
"args": [],
|
"args": [],
|
||||||
"cwd": "${workspaceFolder}/src/Yavsc",
|
"cwd": "${workspaceFolder}/src/Org",
|
||||||
"stopAtEntry": false,
|
"stopAtEntry": false,
|
||||||
"serverReadyAction": {
|
"serverReadyAction": {
|
||||||
"action": "openExternally",
|
"action": "openExternally",
|
||||||
|
|
@ -33,18 +33,18 @@
|
||||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
},
|
},
|
||||||
"sourceFileMap": {
|
"sourceFileMap": {
|
||||||
"/Views": "${workspaceFolder}/src/Yavsc/Views"
|
"/Views": "${workspaceFolder}/src/Org/Views"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"name": "sample web",
|
"name": "Web",
|
||||||
"type": "coreclr",
|
"type": "coreclr",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"preLaunchTask": "build",
|
"preLaunchTask": "build",
|
||||||
"program": "${workspaceFolder}/src/sampleWebAsWebApiClient/bin/Debug/net9.0/sampleWebAsWebApiClient.dll",
|
"program": "${workspaceFolder}/src/Web/bin/Debug/net9.0/Web.dll",
|
||||||
"args": [],
|
"args": [],
|
||||||
"cwd": "${workspaceFolder}/src/sampleWebAsWebApiClient",
|
"cwd": "${workspaceFolder}/src/Web",
|
||||||
"stopAtEntry": false,
|
"stopAtEntry": false,
|
||||||
"serverReadyAction": {
|
"serverReadyAction": {
|
||||||
"action": "openExternally",
|
"action": "openExternally",
|
||||||
|
|
@ -54,7 +54,7 @@
|
||||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
},
|
},
|
||||||
"sourceFileMap": {
|
"sourceFileMap": {
|
||||||
"/Views": "${workspaceFolder}/src/sampleWebAsWebApiClient/Views"
|
"/Views": "${workspaceFolder}/src/Web/Views"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -62,29 +62,18 @@
|
||||||
"name": "Api",
|
"name": "Api",
|
||||||
"type": "coreclr",
|
"type": "coreclr",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"preLaunchTask": "build-webapi",
|
"preLaunchTask": "build-web",
|
||||||
"program": "${workspaceFolder}/src/Api/bin/Debug/net8.0/Api.dll",
|
"program": "${workspaceFolder}/src/Api/bin/Debug/net9.0/Api.dll",
|
||||||
"args": [],
|
"args": [],
|
||||||
"cwd": "${workspaceFolder}/src/Api",
|
"cwd": "${workspaceFolder}/src/Api",
|
||||||
"stopAtEntry": false,
|
"stopAtEntry": false,
|
||||||
"console": "internalConsole"
|
"console": "internalConsole"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "dotnet webClient",
|
"name": "dotnet org",
|
||||||
"type": "dotnet",
|
"type": "dotnet",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
//"projectPath": "${workspaceFolder}/src/Yavsc/Yavsc.csproj",
|
"projectPath": "${workspaceFolder}/src/Org/Org.csproj",
|
||||||
"projectPath": "${workspaceFolder}/src/sampleWebAsWebApiClient/sampleWebAsWebApiClient.csproj",
|
|
||||||
"serverReadyAction": {
|
|
||||||
"action": "openExternally",
|
|
||||||
"pattern": "\\bNow listening on:\\s+(https?://\\S+)"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "dotnet web",
|
|
||||||
"type": "dotnet",
|
|
||||||
"request": "launch",
|
|
||||||
"projectPath": "${workspaceFolder}/src/Yavsc/Yavsc.csproj",
|
|
||||||
"serverReadyAction": {
|
"serverReadyAction": {
|
||||||
"action": "openExternally",
|
"action": "openExternally",
|
||||||
"pattern": "\\bNow listening on:\\s+(https?://\\S+)"
|
"pattern": "\\bNow listening on:\\s+(https?://\\S+)"
|
||||||
|
|
|
||||||
4
.vscode/tasks.json
vendored
4
.vscode/tasks.json
vendored
|
|
@ -47,7 +47,7 @@
|
||||||
"isBackground": true
|
"isBackground": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "build-webclient",
|
"label": "build-web",
|
||||||
"type": "process",
|
"type": "process",
|
||||||
"problemMatcher": ["$msCompile"],
|
"problemMatcher": ["$msCompile"],
|
||||||
"command": "dotnet",
|
"command": "dotnet",
|
||||||
|
|
@ -57,7 +57,7 @@
|
||||||
"runOptions": {
|
"runOptions": {
|
||||||
},
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"cwd": "src/sampleWebAsWebApiClient"
|
"cwd": "src/Web"
|
||||||
},
|
},
|
||||||
"group": {
|
"group": {
|
||||||
"kind": "build"
|
"kind": "build"
|
||||||
|
|
|
||||||
14
Makefile
14
Makefile
|
|
@ -2,6 +2,8 @@
|
||||||
CONFIG=Debug
|
CONFIG=Debug
|
||||||
FRAMEWORK=net9.0
|
FRAMEWORK=net9.0
|
||||||
DESTDIR=/tmp/yavsc
|
DESTDIR=/tmp/yavsc
|
||||||
|
APP_PATH=srv/www/yavsc
|
||||||
|
APP_FULL_PATH=$(DESTDIR)/$(APP_PATH)
|
||||||
|
|
||||||
all:
|
all:
|
||||||
dotnet build --nologo
|
dotnet build --nologo
|
||||||
|
|
@ -27,12 +29,14 @@ src/Yavsc.Server/bin/$(CONFIG)/$(FRAMEWORK)/Yavsc.Server.dll:
|
||||||
src/Yavsc/bin/$(CONFIG)/$(FRAMEWORK)/Yavsc.dll:
|
src/Yavsc/bin/$(CONFIG)/$(FRAMEWORK)/Yavsc.dll:
|
||||||
dotnet build -p:Configuration=$(CONFIG) --project src/Yavsc/Yavsc.csproj
|
dotnet build -p:Configuration=$(CONFIG) --project src/Yavsc/Yavsc.csproj
|
||||||
|
|
||||||
|
$(DESTDIR):
|
||||||
|
mkdir $(DESTDIR)
|
||||||
|
|
||||||
publish:
|
install: $(DESTDIR)
|
||||||
dotnet publish src/Yavsc/Yavsc.csproj -c Release -o $(DESTDIR)/srv/www/yavsc
|
dotnet publish src/Org/Org.csproj -c Release -o $(APP_FULL_PATH)
|
||||||
|
dotnet publish src/Api/Api.csproj -c Release -o $(APP_FULL_PATH)
|
||||||
install: publish
|
dotnet publish src/Web/Web.csproj -c Release -o $(APP_FULL_PATH)
|
||||||
sudo chown -R www-data:www-data $(DESTDIR)/srv/www/yavsc
|
sudo chown -R www-data:www-data $(APP_FULL_PATH)
|
||||||
|
|
||||||
docker-image:
|
docker-image:
|
||||||
docker build .
|
docker build .
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue