上传MVC Web应用程序 [英] Uploading a MVC Web application

查看:77
本文介绍了上传MVC Web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友们,



我一直在使用MVC Web应用程序(Internet应用程序),我现在想把它放在真实环境中,问题是该应用程序是部分HTML,所以我需要一些特定的方法将其上传到服务器。



我记得好的旧HTML网站使用你这样工作,一旦你完成一个网站,你只需通过域上的ftp上传到特定的文件夹并且index.html是要调用的主页面,Bob是你的叔叔。



在Visual Studio中,BUILD下有一个菜单项 - >发布项目/或应用程序。我必须遵循这个吗?程序会处理其余的事情?在我的应用程序中有一个数据库,文件结构如何工作,是否自动构建,我需要采取上传制作文件夹或编写一些代码或其他内容时的一些步骤??



PS。我之前曾问过一个问题而且有人告诉谷歌它!这是真的,一个人可以找到相关的信息,但不是那么容易,就像我们都不是很快和书呆子,就像一些人回答一切,可能需要一个星期,几天来完善相关信息,这就是为什么我写这里,所以我可能得到在正确的方向上指导。

Dear friends,

I have been working with a MVC Web application (Internet application) which I now want to put up in the real environment, question is that the application is part html, so do I need some specific methods to upload it to a server.

I remember the good old HTML sites use you work like this way, that once you done with a site you just upload it through ftp on the domain to a specific folder and the index.html was the main page to be called and Bob’s your uncle.

In Visual Studio there is a menu item under BUILD -> Publish "the project / or app. Do I have to just follow that ? and the program takes cares of the rest ? In my app there is a database, how does the file structure works, is it auto built, do I need to take some steps while uploading make folders or write some code or whatever??

PS. I previously asked a question and someone told to Google it ! well it’s true that one can find relevant info but its not that easy, like we are all not very quick and nerdy like some who have answer to everything, it might take a week, days to fine the relevant info, that's why I am writing here, so I might get guided in the right direction.

推荐答案

你必须从Visual Studio发布你的MVC项目到:

1)指定一个Web服务器上的路径,如果您的Web服务器位于同一个LAN中



2)只需将其从计算机中发布到一个foloder中:
You have to "Publish" your MVC project from Visual Studio and to:
1)specify a path on your Web Server, if your web server is in the same LAN
OR
2)Just publish it into a foloder from your compute like:
C:\MyPath\MyWebApp<br />

然后你只需从MyWebApp文件夹中复制整个内容,然后通过FTP在最终位置复制。

Then you just copy the entire content from your "MyWebApp" folder and copy via FTP on your final location."


这篇关于上传MVC Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆