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

Forums / General Discussions / Production/hosted code conversion into dev environment

Production/hosted code conversion into dev environment

5 posts, 1 answered
  1. vb
    vb avatar
    3 posts
    Registered:
    13 Nov 2015
    13 Nov 2015
    Link to this post
    This sounds unusual but consider this case :
    I have production/hosted code for sitefinity 4.0  website, can i create another dev environment from it? If yes then how? What should i need  to do? Can you point me to some direction?
  2. gregory hernandez
    gregory hernandez avatar
    59 posts
    Registered:
    10 Jul 2009
    14 Nov 2015 in reply to vb
    Link to this post
    I don't know if this is what you mean, but, you can copy your site's files and database from your production server to your local machine, then setup a dev environment.
  3. vb
    vb avatar
    3 posts
    Registered:
    13 Nov 2015
    16 Nov 2015 in reply to gregory hernandez
    Link to this post
    Hi gregory,
    You got me. I am using Sitefinity 4.0 , i have code and database backup from my production server (however some files are missing like SitefinityWebApp.csproj and UpdateLog.xml see image MissingFiles.png). So when i open project manager i don't find a way to import any project (See image NoImportOptionInProjectManager.png).  I can create a new project but unable to use my old project.
    So can you guide me how to use my old project through project manager?
  4. gregory hernandez
    gregory hernandez avatar
    59 posts
    Registered:
    10 Jul 2009
    17 Nov 2015 in reply to vb
    Link to this post

    Hi vb,

    I'd go a different route, now that you have backups of files and DB.

    Meaning, I'd make sure I can run the site locally first. Later on, if/when needed, I'd bring the site into the project manager (e.g. to upgrade the sitefinity version for example).

    I'd set up the DB in sql express (or any edition of mssql you're running). Make sure you can connect to the DB using mssql management studio.

    Find the config file in your backed up site files folder that contains the DB connection string. Change the connection string to point to your local DB. (When you eventually bring up your local (dev) site, you want to prevent it from connecting to your production/hosted database.)

    Move the folder with your site files to C:\inetpub\wwwroot and make sure that security for the "NETWORK SERVICE" user is set to Modify.

    Launch IIS, set up a new site and make the physical path points to the folder with your site files.

    I'd recommend reading through the following docs for anything I may have missed (e.g. application pools, etc.)
    http://docs.sitefinity.com/configure-the-iis-to-host-sitefinity-projects
    http://docs.sitefinity.com/run-projects-on-iis-7-0-and-above

    Start/Run site from IIS.

    If the site runs, you're good.

    Bring the site into visual studio for any development.

    I hope this helps.

    Answered
  5. vb
    vb avatar
    3 posts
    Registered:
    13 Nov 2015
    18 Nov 2015 in reply to gregory hernandez
    Link to this post
    Thanks gregory , that really helped.
5 posts, 1 answered