将远程站点链接到 Visual Studio 2010
我在本地笔记本电脑上开发了一个网站。该网站处于相当高级的阶段,因此我想在远程服务器上对其进行测试,一旦完成即可。
我使用 Visual Studio 2010,我问自己是否可以将站点留在服务器中并继续在我的计算机中开发它而不会失去同步。
我的意思是,假设我在从笔记本电脑浏览该网站时发现了一个错误。我想修复它,而不在本地复制站点,然后手动将其放回到服务器上。
Visual Studio 2010 可以实现这一点吗?
更多信息: 该站点本地托管在 C:\Mysite\ 中,服务器托管在 C:\Mysite\(同一目录)中。 我可以使用远程桌面连接到服务器,但连接是经过身份验证的(当然)...我写这个是为了防止它是有用的信息。 提前致谢!
i developed a site in my local laptop. The site is quite in an dvanced stage so i'd like to test it in the remote server where it will be once finished.
I use visual studio 2010 and i was asking myself if it was possible to leave the site in the server and go on developing it in my machine without loosing syncronization.
I mean, suppose i find a bug while navigating the site from my laptop. I would like to fix it without copying the site locally, and then put it back on the server manually.
Is this possible with Visual Studio 2010?
Some more info:
The site is hosted locally in C:\Mysite\ and in the server in C:\Mysite\ (the same directory).
I can connect to the server with remote desktop but the connection is authenticated (of course)... I wrote this in case it's useful information.
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您只需选择
打开 -> 即可网站
并在目录浏览器中选择来自FTP
或远程站点
。然而,仅仅因为你可以,并不意味着你应该这样做!分别保留开发副本和生产副本。
You can, by simply selecting
Open -> Website
and choosingfrom FTP
orRemote Site
in the directory browser.However, just because you can doesn't mean you should! Keep a development and production copy separately.
打开VS2010,然后在“文件”菜单中选择“打开”->“网站->远程站点。
然后输入您的远程地址即可完成,您可以像在本地一样在远程站点上工作。
Open VS2010 and then in File menu choose Open -> Website -> Remote site.
Then enter your remote address and it's done, you can work on your remote site as if it was local.
将代码直接发布到服务器并不是一个好主意。但是,如果您愿意这样做,您可以考虑设置持续集成流程。每当您提交代码时,您都可以运行 msbuild 或 nant 脚本,该脚本从源代码管理获取最新的代码更改并将其推送到服务器。您还可以使用诸如 webdeploy 之类的东西...这对于 Web 项目来说是理想的选择...
it is not a good idea to publish your code directly to your server. However if you would like to do it, you can think of setting up continuous integration process. Whenever you commit the code, you can run a msbuild or nant script which gets latest code changes from source control and push to the server. You can also sse something like webdeploy... which ideal for web projects...