开发者

ASP.Net Upload Source Code to Web Server or Upload VS2010 Published Files

I am developing ASP.Net MVC websites. Currently I publish (using VS210) the site and upload the published code, bin file, views, css etc.

开发者_如何学编程

The only issue I have with this is that the only place I then have the actual source code is on my local machine and backup drive. I tend to work from various places and pull others in to work on projects from time to time and we do not have the infrastructure to synch it all at the moment.

Having the source code on the server can actually be quite useful to me.

But is there any problems with doing this? I presume there is no performance issue as it will be compiled anyway, but what about security?

The web config file tends to store the DB connection - but this is present on the server regardless of source upload or published upload.

Any input appreciated.


Deploying the build outputs to the server is definitely the correct thing to do. What you are looking for is generally called source control. That will let you keep a database of your source, including revisions. It is the first step to enlightened development. You really shouldn't leave home without it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜