[英]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. 我正在使用Mac上的VS Code开发一个ASP.NET Core应用程序,现在是时候发布了。
I ordered a server (Not azure), registered the domain, but I'm not quite sure about how to deploy this to my Host. 我订购了一台服务器(Not azure),注册了域名,但我不太清楚如何将其部署到我的主机上。
The Host sended to me a Publish Profile, can I deploy my application with VS Code on a Mac ? 主持人向我发送了一个发布配置文件,我可以在Mac上使用VS Code部署我的应用程序吗?
Or should I publish in a local folder then send to the host via FTP? 或者我应该在本地文件夹中发布然后通过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. 我认为Windows的力量,以及Visual Studio for Windows中的发布配置文件,它只是工作...现在,在Mac上真的很混乱。
I`m not using Visual Studio for Mac because its too slow (Macbook air). 我没有使用Visual Studio for Mac,因为它太慢(Macbook air)。
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). 然后,获取在该过程中创建的发布文件夹,并通过FTP(在wwwroot文件夹中)上传到我的主机。
That's it. 而已。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.