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

Forums / Deployment / Moving a site from dev to production

Moving a site from dev to production

14 posts, 1 answered
  1. Trevor
    Trevor avatar
    18 posts
    Registered:
    05 Oct 2010
    20 Oct 2010
    Link to this post
    Hey guys,

    I'm doing an evaluation of Sitefinity for my company and one of their concerns is the ability to easily move a site from a dev environment to production, is this possible?

    Thanks,
    Trev
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    19 Sep 2016
    20 Oct 2010
    Link to this post
    Hi Trevor,

    Procedure of moving Sitefinity to staging to production is the same as for each other ASP.NET website. Generally the steps are

    1. FTP all files from your solution to the production server
    2. Create a database backup on the staging server and restore it on the production.
    3. Change the web.config to point to the production database server.

    Another option is using database/schema comparison tool and file replication tools in case of merging frequently data between staging and production.

    Best wishes,
    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
    Answered
  3. Trevor
    Trevor avatar
    18 posts
    Registered:
    05 Oct 2010
    20 Oct 2010
    Link to this post
    Oh, perfect. Thank you.
  4. Bryan
    Bryan avatar
    6 posts
    Registered:
    04 Nov 2010
    18 Feb 2011
    Link to this post
    instead of changing the web.config as described in step three, wouldn't it make more sense to just not overwrite the production web.config in the first place?
  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    19 Sep 2016
    21 Feb 2011
    Link to this post
    Hi Bryan,

    If there are changes in the web.config then you should merge them. For example - you have a new control that you want to add to the production.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
  6. Bachar Zeidan
    Bachar Zeidan avatar
    67 posts
    Registered:
    01 Jul 2010
    24 Feb 2011
    Link to this post
    Hi,
    my site in actually under a pre-production server, with url named http:\\beta.mysite.com

    When I change the dns, the final name will be: http:\\mysite.com.

    I must do this in the weekend. :-|
    So, if I have some fixed links in html starting with http:\\beta.mysite.com\  it's a problem. What can I do to update my url into database? There's other thinks I have to update before the changing of url ?

    Best regards,
    Bachar
  7. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    19 Sep 2016
    24 Feb 2011
    Link to this post
    Hello Bachar,

    We do not handle the static links and it depends on how you added them to a page.

    For public controls like GenericContent you have to update [sf_CmsControlProperty] table.
    For backend - modules you have to update -[sf_CmsTextContent]



    Greetings,
    Ivan Dimitrov
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  8. thomas
    thomas avatar
    9 posts
    Registered:
    15 Mar 2011
    15 Mar 2011
    Link to this post
    What is considered a best practice for moving changes to an "already-in-production" site? To better explain, a Sitefinity project has already been pushed to production. However, there are modifications being made on a weekly basis. What is the best/easiest way to push these changes to the website?

    Thank you in advance
  9. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    19 Sep 2016
    15 Mar 2011
    Link to this post
    Hi ,

    You can use a third party database replication and schema comparison tool to merge the changes without loosing data.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  10. thomas
    thomas avatar
    9 posts
    Registered:
    15 Mar 2011
    15 Mar 2011
    Link to this post
    Thank you for your response
  11. Sharlyne
    Sharlyne avatar
    30 posts
    Registered:
    14 Aug 2008
    22 May 2012
    Link to this post
    I am trying to do the reversal of this and I tried to follow the same method but I keep runing into "object reference" errors. I have a live environment and a dev environment, I was trying to update my dev environment with live data so I can test doing an upgrade. Could you confirm that I did this correctly?
    -Copied database and restored to dev sql
    -copy website instance and paste into existing dev website folder
    -update web.config to ensure it is pointing to the correct database
    If that is correct, why do I keep getting an "object reference not set to an instance of an object" error?
  12. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    19 Sep 2016
    23 May 2012
    Link to this post
    Hi,

    Your environments don't seem to be the same if you are getting errors on one of the instances. Files, files structure, database or IIS setup are not the same. Please check whether all files were copied and the database you restored is not corrupted somehow. The error you are getting is thrown from some object that is null when you make a request to the website or its backend.

    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  13. Sharlyne
    Sharlyne avatar
    30 posts
    Registered:
    14 Aug 2008
    24 May 2012
    Link to this post
    The structure of my website project itself is the same from both environments. the difference lies in that for live it the project lives under E:\website1 and for development it lives under the standar C:/program files/telerik/.../website1  So meaning the appdata folder lives in E:\website1\appdata and c:/program files/telerik/../website1/appdata. Will that make a difference? If yes, how can I correct this issue?
  14. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    19 Sep 2016
    28 May 2012
    Link to this post
    Hi,

    The location of the website folder could not be a problem. Where exactly you get this error. Can you send the stack trace? Check the log files in App_Data folder.

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested 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
14 posts, 1 answered