<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Søren Mastrup</title>
    <description>The latest articles on DEV Community by Søren Mastrup (@mastrup).</description>
    <link>https://dev.to/mastrup</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F454221%2Fe6ca85e6-40c8-43d9-8937-5e13709d614a.jpg</url>
      <title>DEV Community: Søren Mastrup</title>
      <link>https://dev.to/mastrup</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mastrup"/>
    <language>en</language>
    <item>
      <title>Moving away from Umbraco Cloud</title>
      <dc:creator>Søren Mastrup</dc:creator>
      <pubDate>Tue, 17 Nov 2020 15:18:50 +0000</pubDate>
      <link>https://dev.to/mastrup/moving-away-from-umbraco-cloud-39g6</link>
      <guid>https://dev.to/mastrup/moving-away-from-umbraco-cloud-39g6</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a note to myself on how to move a site away from Umbraco cloud. I thought it might be useful for others, so I made it into a post&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Cloning the environment from Umbraco Cloud
&lt;/h2&gt;

&lt;p&gt;Clone down the environment with the content and code you want, to your local machine. Do a restore when you spin up the site locally - this will give you all the data, content and media.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;NOTE:&lt;/strong&gt; if you wish to have the database in SQL Server instead of SQL CE you need to set the connection string before you spin the site up the first time.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  An alternative way to move content
&lt;/h3&gt;

&lt;p&gt;On some older solutions I have experienced issues with restoring from Umbraco Cloud. Instead of troubleshooting to fix the issue(s), I found it easier to connect directly to the SQL database and do a database export. Afterwards I can import the database to wherever I need to place it.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You find the SQL connection details in the Umbraco Cloud Portal. Make sure to add your IP address to the SQL Azure firewall (also from the portal).&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Removing Umbraco Cloud settings
&lt;/h2&gt;

&lt;p&gt;After getting all your data, content and media you are now ready to remove all settings related to Umbraco Cloud.&lt;/p&gt;

&lt;h3&gt;
  
  
  Cleaning your configs
&lt;/h3&gt;

&lt;p&gt;Start by removing the Deploy reference in web.config:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;umbraco.deploy&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;environments&lt;/span&gt; &lt;span class="na"&gt;configSource=&lt;/span&gt;&lt;span class="s"&gt;"config\UmbracoDeploy.config"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;settings&lt;/span&gt; &lt;span class="na"&gt;configSource=&lt;/span&gt;&lt;span class="s"&gt;"config\UmbracoDeploy.Settings.config"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/umbraco.deploy&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Removing Cloud specific files
&lt;/h3&gt;

&lt;p&gt;The following Umbraco Deploy related files needs to be removed:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;Config/UmbracoDeploy.config&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Config/UmbracoDeploy.Settings.config&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;bin/Umbraco.Deploy.Cloud.dll&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;bin/Umbraco.Deploy.Contrib.Connectors.dll&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;bin/Umbraco.Deploy.dll&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;bin/Umbraco.Deploy.Forms.dll&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;bin/Umbraco.Deploy.UI.dll&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;/Deploy&lt;/code&gt; folder in &lt;code&gt;App_Plugins&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you are running Umbraco 7, you also need to remove the Deploy section in the Dashboard.config file&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;section&lt;/span&gt; &lt;span class="na"&gt;alias=&lt;/span&gt;&lt;span class="s"&gt;"Deploy"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;areas&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;area&amp;gt;&lt;/span&gt;content&lt;span class="nt"&gt;&amp;lt;/area&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/areas&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;tab&lt;/span&gt; &lt;span class="na"&gt;caption=&lt;/span&gt;&lt;span class="s"&gt;"Your workspace"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;control&amp;gt;&lt;/span&gt;/App_Plugins/Deploy/views/dashboards/dashboard.html&lt;span class="nt"&gt;&amp;lt;/control&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/tab&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/section&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  A note on Umbraco Forms
&lt;/h2&gt;

&lt;p&gt;If you want to continue using Umbraco Forms outside of Umbraco Cloud, you need to purchase a license.&lt;/p&gt;

&lt;p&gt;The forms license file needs to be placed in&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;add&lt;/span&gt; &lt;span class="na"&gt;key=&lt;/span&gt;&lt;span class="s"&gt;"UmbracoLicensesDirectory"&lt;/span&gt; &lt;span class="na"&gt;value=&lt;/span&gt;&lt;span class="s"&gt;"~/App_Plugins/UmbracoLicenses/"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Unless you change this.&lt;/p&gt;

</description>
      <category>umbraco</category>
      <category>hosting</category>
    </item>
  </channel>
</rss>
