Skip to content

Commit

Permalink
gcp
Browse files Browse the repository at this point in the history
  • Loading branch information
hlaueriksson committed Jul 13, 2024
1 parent da6612c commit 64d163a
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
7 changes: 7 additions & 0 deletions samples/.gcloudignore → .gcloudignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,12 @@
# obj directories) may be uploaded.

.gcloudignore

.git/
.github/
.vs/
src/
tests/

bin/
obj/
2 changes: 1 addition & 1 deletion samples/CommandQuery.Sample.Client/run.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dotnet run https://commandquerysampleaspnetcore.azurewebsites.net/api
dotnet run https://u3rkew3obh.execute-api.eu-central-1.amazonaws.com/Prod
dotnet run https://commandquerysampleazurefunctions.azurewebsites.net/api
dotnet run https://us-central1-solid-antler-215713.cloudfunctions.net/commandquery-sample-googlecloudfunctions-command/api/command/ https://us-central1-solid-antler-215713.cloudfunctions.net/commandquery-sample-googlecloudfunctions-query/api/query/
dotnet run https://europe-north1-solid-antler-215713.cloudfunctions.net/commandquery-sample-googlecloudfunctions-command/api/command/ https://europe-north1-solid-antler-215713.cloudfunctions.net/commandquery-sample-googlecloudfunctions-query/api/query/
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
9 changes: 5 additions & 4 deletions samples/CommandQuery.Sample.GoogleCloudFunctions/deploy.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
cd ..
:: Deploy from the root directory
cd ..\..

CMD /C gcloud functions deploy commandquery-sample-googlecloudfunctions-command --runtime dotnet8 --trigger-http --entry-point=CommandQuery.Sample.GoogleCloudFunctions.Command --set-build-env-vars=GOOGLE_BUILDABLE=CommandQuery.Sample.GoogleCloudFunctions
CMD /C gcloud functions deploy commandquery-sample-googlecloudfunctions-query --runtime dotnet8 --trigger-http --entry-point=CommandQuery.Sample.GoogleCloudFunctions.Query --set-build-env-vars=GOOGLE_BUILDABLE=CommandQuery.Sample.GoogleCloudFunctions
CMD /C gcloud functions deploy commandquery-sample-googlecloudfunctions-command --gen2 --region=europe-north1 --runtime=dotnet8 --trigger-http --entry-point=CommandQuery.Sample.GoogleCloudFunctions.Command --set-build-env-vars=GOOGLE_BUILDABLE=samples/CommandQuery.Sample.GoogleCloudFunctions
CMD /C gcloud functions deploy commandquery-sample-googlecloudfunctions-query --gen2 --region=europe-north1 --runtime=dotnet8 --trigger-http --entry-point=CommandQuery.Sample.GoogleCloudFunctions.Query --set-build-env-vars=GOOGLE_BUILDABLE=samples/CommandQuery.Sample.GoogleCloudFunctions

cd CommandQuery.Sample.GoogleCloudFunctions
cd samples\CommandQuery.Sample.GoogleCloudFunctions

0 comments on commit 64d163a

Please sign in to comment.