<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">Blog posts by Andrew Pohto</title><link href="http://world.optimizely.com" /><updated>2019-11-07T21:15:24.0000000Z</updated><id>https://world.optimizely.com/blogs/andrew-pohto/</id> <generator uri="http://world.optimizely.com" version="2.0">Optimizely World</generator> <entry><title>Epi best practices checklist</title><link href="https://world.optimizely.com/blogs/andrew-pohto/dates/2019/11/epi-audit-checklist/" /><id>&lt;p&gt;Temporarily removed sorry.&lt;/p&gt;</id><updated>2019-11-07T21:15:24.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Summary extension for rich text fields</title><link href="https://world.optimizely.com/blogs/andrew-pohto/dates/2019/8/summary-extension-for-rich-text-fields/" /><id>&lt;p&gt;Here is an extension that allows you to take a subsection of a rich text field and display it as a string.&lt;/p&gt;
&lt;pre class=&quot;language-csharp&quot;&gt;&lt;code&gt;public static string GetSummary(this XhtmlString input, int? summaryLength = null)
{
    if (input != null)
    {
        var summary = TextIndexer.StripHtml(input.ToString(), summaryLength ?? 0);

        summary = HttpUtility.HtmlDecode(summary);

        return summary + &quot;...&quot;;
    }

    return null;
}&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I&#39;ve found this extension useful, especially for displaying search results.&lt;/p&gt;
&lt;p&gt;Just a quick example so folks don&#39;t have to keep reinventing the wheel.&lt;/p&gt;</id><updated>2019-08-01T20:15:16.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Deploying Your Episerver Site to Azure via Kudu</title><link href="https://world.optimizely.com/blogs/andrew-pohto/dates/2019/7/deploying-your-episerver-site-to-azure-via-kudu/" /><id>&lt;p&gt;I will preface this by saying that this is an alternative deployment option for when Azure DevOps CI/CD isn&#39;t an option for you. That being said if that isn&#39;t an option for you I hope this helps.&lt;/p&gt;
&lt;p&gt;
&lt;p&gt;Kudu is the engine that the Azure App Service uses for Git deployments.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://github.com/projectkudu/kudu/wiki&quot;&gt;https://github.com/projectkudu/kudu/wiki&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can access Kudu by logging into &lt;a href=&quot;https://www.portal.azure.com&quot;&gt;https://www.portal.azure.com&lt;/a&gt;&amp;nbsp;but, before we get to accessing Kudu in order to deploy, first we need to produce a zipped up copy of the site code we want to deploy.&lt;/p&gt;
&lt;p&gt;In order to do this, I&#39;m going to open up the solution in Visual Studio. From here I&#39;m going to set up a publish profile to publish the site locally where I can zip it up for deployment.&lt;/p&gt;
&lt;p&gt;To set up a publish profile look in the toolbar for where it says &quot;Publish&quot; with a drop down next to it.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/link/39bbd261576e44849785a05769c5bf8f.aspx&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Click on that drop down and select the &quot;New Custom Profile&quot; option.&lt;/p&gt;
&lt;p&gt;In the window that opens up select Folder as the publish target type and then provide the path to where you want to publish making sure that the path ends with &quot;.../wwwroot&quot;.&lt;/p&gt;
&lt;p&gt;Next click on &quot;Advanced&quot; and ensure that the proper configuration is selected so the correct transforms are applied. Then click save to close that window and press the publish button.&lt;/p&gt;
&lt;p&gt;Navigate to where you published your code and confirm that everything is there.&lt;/p&gt;
&lt;p&gt;Once you&#39;ve confirmed everything is present and accounted for zip up the wwwroot directory. This is what you&#39;ll be providing to Kudu for deployment.&lt;/p&gt;
&lt;p&gt;Now that you have your zip file open up&amp;nbsp;&lt;a href=&quot;https://www.portal.azure.com&quot;&gt;https://www.portal.azure.com&lt;/a&gt;&amp;nbsp;in your browser.&lt;/p&gt;
&lt;p&gt;Login and then click on your account in the upper right once you are on the dashboard.&lt;/p&gt;
&lt;p&gt;Confirm that you have the proper directory for the site you want to deploy to selected. If not select &quot;Switch Directories&quot; and choose the correct one.&lt;/p&gt;
&lt;p&gt;Next go to the toolbar on the left of the page and select &quot;App Services&quot;.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/link/27e929516e50497cb3de25bf12ccacca.aspx&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Click on the app service for the site you are deploying to and the scroll down in the toolbar of the window that opens to the &quot;Development Tools&quot; section and select &quot;Advanced Tools&quot; and then &quot;Go&quot;. This will open up Kudu in a new tab.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/link/0a006445ee204d14a161b7959820629e.aspx&quot; /&gt;&lt;/p&gt;
&lt;p&gt;At the top of the screen click on the &quot;Debug Console&quot; dropdown and select &quot;CMD&quot;.&lt;/p&gt;
&lt;p&gt;You are now presented with a screen that has a file explorer listing the home directories for the server at the top and a command line at the bottom.&lt;/p&gt;
&lt;p&gt;Click on the &quot;Site&quot; directory and then scroll down to the bottom where you should see the wwwroot folder on the server.&lt;/p&gt;
&lt;p&gt;Go grab the zip file from where you created it and drag it over the top right of the file explorer window. When you are over the right spot a blue box that says &quot;Drag here to upload and unzip&quot;.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/link/dda6ee10367b4cf6bfec52b9c9983010.aspx&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Drop the file there and the file will be uploaded to the server and Kudu will unzip it for you.&lt;/p&gt;
&lt;p&gt;Open up the wwwroot folder and confirm that it contains your new code.&lt;/p&gt;
&lt;p&gt;Congratulations! You have successfully now deployed using Kudu!&lt;/p&gt;
&lt;p&gt;You can now use&amp;nbsp;&lt;a href=&quot;http://paasportal.episerver.net/&quot;&gt;http://paasportal.episerver.net&lt;/a&gt;&amp;nbsp;to deploy to higher environments.&lt;/p&gt;&lt;/p&gt;</id><updated>2019-08-01T18:09:16.0000000Z</updated><summary type="html">Blog post</summary></entry></feed>