Leonid
Leonid

Reputation: 1111

Can I deploy .net core application into google cloud using terminal?

I would like to deploy my dotNetCore application into google cloud (App Engine Flex) using gitlab-ci or using Unix terminal. Unfortunately, I found limited information how can I do it. Could someone help me?

Yes, there is a possibility to use docker, if I find no other options.

Thanks.

Upvotes: 0

Views: 115

Answers (1)

Jeffrey Rennie
Jeffrey Rennie

Reputation: 3443

Yes, you can. This page describes how: https://cloud.google.com/appengine/docs/flexible/dotnet/quickstart

It's a little trickier than using VS Tools, but not much. You have to create an app.yaml file, and populate it with two lines. Then run:

dotnet restore
dotnet publish -c Release
gcloud app deploy .\bin\Release\netcoreapp1.1\publish\app.yaml

Again, the quickstart page and the samples it links to have the finer details.

Upvotes: 2

Related Questions