I would like to try the 'Web Deploy' method to deploy our website. Before my questions, I would like to provide a few details about the current deployment procedure:
It is an enterprise site & is hosted on multiple servers (with continuous deployment).
The files are not in 'Release' mode, but in 'Debug' mode.
We manually copy paste only the current assignment related files. Say, this week, the Accounts module is to be deployed, then the files to be deployed are
/mysite/App_Code/Models/accounts.cs
/mysite/pages/accounts.aspx, accounts.aspx.csThe 3 files will be copied to the respective folders in all the servers manually. This has been the procedure for years here.
- The project 'mysite' is an 'ASP.NET Website' and not 'ASP.NET Web Application' (in VS2013), which means these options are unavailable - Package/Publish Web & Package/Publish SQL
I have created the packages in the dev system,
(i) using the publish option(web deployment package) in Visual Studio and also
(ii) export application in IIS (gives the option to select the files)
- Is it possible to create a package only for the files I need (in this case accounts.cs, accounts.aspx, accounts.aspx.cs), using VS publish feature.
- Is it possible to include custom SQL scripts file in the package. (using IIS or VS)
- If the answer is a Yes for Q2, then it should be executed only once, not for all servers. Because there is only one DB server. How can it be done.
I did not go for the Installing package part yet.