Before publishing and overwriting the current staging site, be sure to send an email out to the relevant people indicating your intention to update the site and checking if they have any objections.
As long as nobody objects, follow these instructions:
- Get the latest source code via the Source Control Explorer.
- Open the BC_Website project
- Navigate to Layers, 1 – Presentation, 1.1 – Secure Website in the Solution Explorer window.
- Right-click on the ‘Presentation .Secure.Website’ project and select Publish from the context menu.
- In the Publish Web dialog, set the following:
- Connection:
- Publish method: File System
- Target location: [The folder you wish to output the published site files and folders to] example: X:\Published\Registration 2016\SecureSite
- Settings:
- Configuration: Release – Any CPU
- Click on the ‘Publish’ button.
- Navigate to the Target location directory and copy all the files and folders in these.
- Navigate to the Registration 2016 secure site directory at the current location: \\dev01\Websites\Registration_2016\NewSecureSite.
- Paste all the published files and folders in to this directory overwriting what is already there.
- Connection:
Restoring the Database
If it is necessary to restore the database, please inform the relevant people of your intention to do so before you do it. It is possible that they may have data in the current database which they may need.
As long as nobody objects, follow these instructions:
- Open SQL Server Management Studio.
- Log in to the SQL12 server using Windows authentication and drill down to the SQL Server Agent, Jobs in the Object Explorer.
- Right-click on the job ‘Restore Database – BestCompaniesRegistration’ and select ‘Start Job at Step’.
- Click the ‘Start’ button and wait until the job has completed successfully.
Updating the Database
- In the Schema project, modify the connection strings in the Web.Config file so that they are pointing to the BestCompaniesRegistration staging database on the server SQL12. As you are changing this file, it will be checked out of source control and, if you haven’t already got it excluded, make sure that you do not check it in once you have completed the update.
- Run the schema as you would normally.
Comments
0 comments
Please sign in to leave a comment.