Blunderfest
Blunderfest

Reputation: 1854

Deploying a Visual Studio website vs web application

So I'm using visual studio 2010 to build a website that was formerly running on PHP, so I'm pretty new to the environment.

In starting the project I built a website project, not a web application project. I know that will probably generate a lot of "never use a website project, use a web application project instead" comments, but bear with me.

I'm attempting to provide our server team with the necessary files to compile on our server for the first time. However they're used to working with web application files, not website files.

Normally they are given the source code and a batch file that compiles the code into deployment directories and then they just move the files to the server from there. I'm pretty sure that the other teams use deployment packages to do this, which obviously isn't an option for a website.

My question is, what would be the equivalent steps for getting the source for a website ready to deploy vs a web application? I have published the website to a separate folder and this has rendered what I think is the equivalent in many ways, but I wanted to make sure.

Also, is it possible to publish certain parts of a website without others?

Please with-hold all the comments about how I should be using a web application instead, google seems to assume that's all that's used out there too.

Thanks!

Upvotes: 0

Views: 191

Answers (2)

Joe Raio
Joe Raio

Reputation: 1805

I agree with Britton. I personally prefer web application but with the web site project you have 2 options.

Either a) Upload all the files (including the .vb or .cs files) and the web server will compile on the fly. OR, you can publish to a separate folder locally on your machine, and then upload that folder. I would do the publish if you don't want anyone seeing your source code.

Upvotes: 1

Britton
Britton

Reputation: 2981

There isn't much to deploying a web site other than copying the source files to a directory in IIS. It will compile the site automatically on the first page request.

Upvotes: 3

Related Questions