需要有关项目部署的建议 [英] need suggestion on project deployement

查看:68
本文介绍了需要有关项目部署的建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,



我正在使用asp.net项目,该项目使用sql server和c#编程,我自然会通过发布和复制来部署项目到inetpub文件夹,在此之前我正在安装sql server和visual studio。



这是一个愚蠢的问题,但我需要建议有没有办法部署项目而不用安装sql server和visual studio,因为在某些系统上安装sql时遇到问题。



所以有人建议我有其他方法可以简化安装。 br $>


谢谢,

Abdul Rahman

Hello friends,

I'm working on asp.net project which uses sql server and c# programming, naturally i'm deploying project by publishing and copying it to inetpub folder and before this i'm installing sql server and visual studio.

this is a silly question but i need suggestion that is there a way to deploying project without installing sql server and visual studio, because when installing sql getting problem on some systems.

so kindly somebody suggest me that is there any other way to simplify the installation.

Thanks,
Abdul Rahman

推荐答案

你永远不需要Visual Studio除了开发之外的任何东西,甚至不用于构建.NET项目。 Visual Studio只是IDE。



SQL部署有不同的方法,但我建议只是要求它作为产品的先决条件。不要忘记你需要与客户端分开的SQL服务器;它们可以在不同的层上。



-SA
You never ever need Visual Studio for anything except development, not even for building .NET projects. Visual Studio is only the IDE.

There are different approaches to SQL deployment, but I would advise just to require it as a prerequisite for your product. Don't forget that you need SQL server separately from client; they can be on different tiers.

—SA


根据您对我的留言的回复,我想向您概述如何在服务器计算机中设置Web应用程序,以便公司/组织中的所有客户端计算机都可以访问Web应用程序,而无需在每台计算机上安装。

这有很多优点,最重要的是数据集中化。



请记住这只是一个概述,对于你提到的每一步,你都可以需要阅读其他材料。







假设您的所有计算机都在同一个网络中......



1.忽略目前在每台客户端计算机上安装ASP.Net应用程序的方法。这是因为每个新版本在每台计算机上安装它都会花费你的时间 - 你已经知道了。



2.获取服务器计算机(它可能只是任何使用Windows Professional或更高版本的计算机,如果不能同时连接超过5台PC,否则使用Windows Server)。良好的RAM(4GB听起来正确)和像70 + GB这样的大硬盘可能对大多数Web应用程序都足够好。

大多数人认为服务器计算机应该是特殊的,但事实并非如此,计算机可以充当服务器;让越来越强大的计算机充当服务器的决定取决于你期望的流量。是什么使服务器成为使其对客户请求保持开放的软件。在这种情况下,IIS是期望捕获Web应用程序的客户端请求的软件。



3.在服务器计算机中安装SQL Server和您的应用程序。 br />
此时,其余计算机(客户端)可能通过服务器计算机的IP地址访问网站/ webapp,例如http://123.1.2.3(缺少www意味着这是在Intranet中,而不是在实际的WWW中。

这样,只要应用程序发生变化,您就只需要进行1次部署。



4.无论如何,如果您需要您的客户通过域名访问Web应用程序(例如http://MyCompanyIntranet.us),您需要设置DNS服务,所有计算机都将被转移到属于域名的IP地址,以便他们可以通过域名而不是IP来访问。





要设置DNS,您需要Windows Server或任何其他操作系统支持DNS服务的em,一篇关于如何使用Windows Server设置DNS的文章:

http://technet.microsoft.com/en-us/library/cc725925.aspx [ ^ ]



但是,设置DNS服务器并不足以拥有所有计算机提到它。它是在路由器级别,您将告诉应该将哪个IP地址作为DNS服务器进行访问。思科的一个例子: http://www.cisco.com/en/US/tech /tk648/tk362/technologies_tech_note09186a00801da572.shtml [ ^ ]





好​​运!
According to your reply to my message, I'd like to offer you an overview on how to setup a web application in a server computer so that all client computers in your company/organization can access the web application without a need to install in every computer.
This has a lot of advantages, the most important being data centralization.

Please keep in mind this is just an overview, and for every step mentioned you may need to read additional materials.



Assuming all your computers are in the same network...

1. Disregard your current approach of installing an ASP.Net application on every client computer. This is because installing that on every computer for every new version is gonna take you time -as you already know.

2. Get a server computer (it can be just any computer with Windows Professional or later if there are not going to be over 5 PCs connecting simultaneously, otherwise use Windows Server). Good RAM (4GB sounds right) and a big hard drive like 70+GB may be good enough for most web applications.
Most people believe server computers should be special somehow, but this is not true, any computer can act as a server; the decission to get more and more powerful computers to act as servers should depend on the amount of traffic you are expecting. What makes a server is the software that makes it stay "open" to requests from clients. In this case IIS is the software that will be expecting to catch client requests of your web application.

3. Install SQL Server and your application in the server computer.
At this point, it may be possible for the rest of the computers (the clients) to access the website/webapp via the IP address of the server computer, example, http://123.1.2.3 (the lack of a "www" means this is in an intranet, not in the actual WWW).
This way you'll only need 1 deployment anytime there is a change in your application.

4. Aftwerwards, if you need your clients to access the web application by a domain name (ex. "http://MyCompanyIntranet.us") you'll need to setup a DNS service, which is where all computers will go and be directed to the IP Address that belongs to the domain name so they can access by domain name instead of IP.


To set up a DNS, you do need Windows Server or any other operating system that has support for DNS service, an article on how to set up DNS with Windows Server:
http://technet.microsoft.com/en-us/library/cc725925.aspx[^]

However seting up a DNS Server is not enough to have all computers referring to it. It is at the router level where you'll tell what IP Address should be accessed as a DNS Server. An example from Cisco: http://www.cisco.com/en/US/tech/tk648/tk362/technologies_tech_note09186a00801da572.shtml[^]


Best of luck!


你永远不需要使用应用程序部署visual studio。

请访问此链接。

http://msdn.microsoft.com/en-us/library/dd394698(VS.100).aspx #destloying_a_sql_server_database [ ^ ]



-

谢谢。
You never need to deploy visual studio with application.
Please visit this link.
http://msdn.microsoft.com/en-us/library/dd394698(VS.100).aspx#deploying_a_sql_server_database[^]

--
Thanks.


这篇关于需要有关项目部署的建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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