Guilherme Golfetto
Guilherme Golfetto

Reputation: 530

How to Deploy ASP.NET Core MVC with Vs Code on a Mac?

I'm developing a ASP.NET Core app with VS Code on a Mac, and it is time to publish.

I ordered a server (Not azure), registered the domain, but I'm not quite sure about how to deploy this to my Host.

The Host sended to me a Publish Profile, can I deploy my application with VS Code on a Mac ?

Or should I publish in a local folder then send to the host via FTP?

Thanks in advance.

I came thought the Windows Side of the force, and with the publish profile in Visual Studio for Windows, it just works...Now, on a Mac is really confusing.

I`m not using Visual Studio for Mac because its too slow (Macbook air).

Upvotes: 5

Views: 3835

Answers (1)

Guilherme Golfetto
Guilherme Golfetto

Reputation: 530

I found my solution.

After developing the site. I should run a

dotnet publish

and then, get the publish folder that was created in the process and upload to my host via FTP (inside the wwwroot folder).

That's it.

Upvotes: 7

Related Questions