+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Preventing site changes during deployments

Preventing site changes during deployments

6 posts, 0 answered
  1. Donnie Hale
    Donnie Hale avatar
    13 posts
    Registered:
    28 May 2010
    11 Aug 2010
    Link to this post
    Is there an easy way (preferably scriptable / "automate-able") to temporarily disallow any changes to a site? We'll be deploying our site to a production server using the techniques described in the manual (i.e. backup/restore database, copy site content, delete Admin folder, etc.). I'd like to disallow changes just before the database backup begins and re-enable them just after the site content finishes being copied. I think it's important for us to be careful we don't accidentally have any changes made during the deployment of a presumably approved site.

    And I'm not thinking of either the Save / Approve / Publish capabilities or changing and restoring permissions.

    Thanks,

    Donnie
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    11 Aug 2010
    Link to this post
    Hello Donnie Hale,

    You can add App_Offline.htm page in your project root which will take it down for a while or implement custom IHttpModule as described in  this thread - how do you take a site offline?
    You can make some response redirect in case someone is trying to make requests to the backend when the maintenance is being conducted.

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Donnie Hale
    Donnie Hale avatar
    13 posts
    Registered:
    28 May 2010
    12 Aug 2010
    Link to this post
    I should have been clearer. I know how to take the whole site offline (App_Offline.htm, etc.). I don't mind the site being up, I just don't want it being edited in Sitefinity. One thought I had was renaming the "Admin" folder. I was hoping there was something more official, preferably a setting in Web.config like "DisableSiteUpdates". ;)

    Thanks,

    Donnie
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    12 Aug 2010
    Link to this post
    Hi Donnie Hale,

    There is no built in option that takes the website offline. You can use  a custom handler as suggested - this will redirect all requests to another page - user friendly page that will say that you are going to update the website. Renaming the Admin folder will result in some errors.

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Donnie Hale
    Donnie Hale avatar
    13 posts
    Registered:
    28 May 2010
    13 Aug 2010
    Link to this post
    Two follow-up comments based on your last post:

    1) The deployment documentation states that we should delete the "Admin" folder when deploying to production if we want to prevent site edits. Why would renaming the folder act any differently?

    2) I'd like to propose an enhancement - the ability to use configuration to disable site edits altogether. It could be pretty and nice to use, e.g. part of the "Administration" section within the Sitefinity user interface. Or it could be lower level, a particular application setting in Web.config, as I alluded to earlier. But it needs to be something that can be changed in sort of atomic action (e.g. saving the Web.config file or clicking "Save Changes" on the UI).

    Thanks,

    Donnie
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    13 Aug 2010
    Link to this post
    Hi Donnie Hale,

    Removing Admin folder will result in disabling backend access entirely not temporarily. As you have described you want to  do this temporarily.
    We will consider such options for Sitefinity 4.0.

    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
6 posts, 0 answered