Skip to content

Commit

Permalink
simplify tasks for fw lite, change Lexbox Local server to use oauth p…
Browse files Browse the repository at this point in the history
…roxy port
  • Loading branch information
hahn-kev committed Jan 10, 2025
1 parent 4e66b30 commit dfd970a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
11 changes: 7 additions & 4 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,11 @@ tasks:
deps: [ infra-up, api:only, k8s:infra-forward ]
interactive: true

web-for-develop:
deps: [ ui:viewer-dev, fw-lite:lweb-for-develop, ui:https-oauth-authority ]

web:
fw-lite-web:
aliases:
- web
- web-for-develop
deps: [ ui:viewer-dev, fw-lite:web, ui:https-oauth-authority ]

fw-lite-win:
deps: [fw-lite:maui-windows, ui:viewer-dev, ui:https-oauth-authority]
2 changes: 1 addition & 1 deletion backend/FwLite/FwLiteWeb/FwLiteWebServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static WebApplication SetupAppServer(WebApplicationOptions options, Actio
builder.ConfigureDev<AuthConfig>(config =>
config.LexboxServers = [
new (new("https://lexbox.dev.languagetechnology.org"), "Lexbox Dev"),
new (new("https://localhost:3000"), "Lexbox Local"),
new (new("https://localhost:3050"), "Lexbox Local"),
new (new("https://staging.languagedepot.org"), "Lexbox Staging")
]);
builder.ConfigureProd<AuthConfig>(config =>
Expand Down
14 changes: 5 additions & 9 deletions backend/FwLite/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,16 @@ includes:

tasks:

web-for-develop:
label: dotnet
dir: ./FwLiteWeb
cmd: dotnet watch --no-hot-reload
web:
label: Run FwLiteWeb with Local LexBox
env:
Auth__DefaultAuthority: "https://localhost:3050"
aliases:
- web-for-develop
label: Run FwLiteWeb with Local LexBox, requires vite dev server to be running, use task fw-lite-web in root
dir: ./FwLiteWeb
cmd: dotnet watch --no-hot-reload


maui-windows:
deps: [ ui:build-viewer-app ]
label: Run Maui Windows
label: Run Maui Windows, requires vite dev server to be running, use task fw-lite-win in root
dir: ./FwLiteMaui
cmd: dotnet run -f net9.0-windows10.0.19041.0

Expand Down

0 comments on commit dfd970a

Please sign in to comment.