Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying an Umbraco site using Visual Studio

I'm almost finished with my first Umbraco site and i've been looking through these forums as well as the ourumbraco.org forums to try and find a definitive guide as to how to publish an Umbraco site to a live staging area however, as I have found so far, such a guide does not exist. In particular, I am interested in how an Umbraco site developed using Visual Studio can be deployed and which folders can be removed/streamlined for a production environment. I am using the latest version of Umbraco 7.3.1 and a SQL CE database.

I'm happy to use FTP to upload the site to the server if that is an option but I also want to ensure that my site has the basic level of out of the box Umbraco security so I am assuming things like the installation directory should be removed.

Any help with this would be greatly appreciated. I am using Visual Studio 2013.

like image 375
jezzipin Avatar asked Jun 16 '14 08:06

jezzipin


People also ask

How to run Umbraco from Visual Studio?

Open Visual Studio Code, go to Extensions, search for IIS Express for VSCode and install it. Open the folder containing the extracted Zip folder of Umbraco CMS. Now you can run the Umbraco CMS in a browser by hitting CTRL+F5 then choosing which browser in the prompt window.


1 Answers

The answer really depends on how you have set up the project - as if you exclude the umbraco core files (which you have to else they will not compile) Then you will need to include them again in your publish script.

As far as the deployment - I typically include all the folders - including the install folder, but I zip that folder and delete the files. The reason being that the install folder is sometimes used during upgrades if you change databases - and as you are using sqlce you may switch to a full SQL db one day


ADDITION:

My deploy folder finally looks like the following

Directory of E:\Work\Umbraco\deploy

17/06/2014  12:04    <DIR>          .
17/06/2014  12:04    <DIR>          ..
17/06/2014  11:59    <DIR>          App_Browsers
17/06/2014  11:59    <DIR>          App_Plugins
17/06/2014  11:59    <DIR>          bin
17/06/2014  11:59    <DIR>          config
17/06/2014  11:59    <DIR>          css
08/05/2014  23:11               152 default.aspx
08/05/2014  23:11               107 Global.asax
17/06/2014  11:59    <DIR>          macroScripts
17/06/2014  11:59    <DIR>          masterpages
17/06/2014  11:59    <DIR>          media
08/05/2014  23:11             1,954 packages.config
17/06/2014  11:59    <DIR>          scripts
17/06/2014  11:59    <DIR>          umbraco
17/06/2014  11:59    <DIR>          umbraco_client
17/06/2014  11:59    <DIR>          usercontrols
17/06/2014  11:59    <DIR>          Views
17/06/2014  11:59            15,585 Web.config
17/06/2014  11:59    <DIR>          xslt
like image 105
Carl Sargunar Avatar answered Sep 18 '22 13:09

Carl Sargunar