<?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: Vern Martin</title>
    <description>The latest articles on DEV Community by Vern Martin (@wearahelmet).</description>
    <link>https://dev.to/wearahelmet</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%2F310392%2F45054740-5239-466e-8ab2-9a5ad32c5f93.gif</url>
      <title>DEV Community: Vern Martin</title>
      <link>https://dev.to/wearahelmet</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/wearahelmet"/>
    <language>en</language>
    <item>
      <title>Deploying Svelte App to IIS</title>
      <dc:creator>Vern Martin</dc:creator>
      <pubDate>Sat, 11 Jan 2020 14:30:03 +0000</pubDate>
      <link>https://dev.to/wearahelmet/deploying-svelte-app-to-iis-1kia</link>
      <guid>https://dev.to/wearahelmet/deploying-svelte-app-to-iis-1kia</guid>
      <description>&lt;p&gt;Nothing fancy here -- just the absolutely bare minimum setup.&lt;/p&gt;

&lt;p&gt;I did not find any deployment guidance on the web specifically for IIS. I know just enough about IIS to get this working, so feel free to suggest a better way. Here is what I had to do to get the app working.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;modify the public/index.html file (came from the Svelte template) to remove the leading / from the public/index.html for style sheets and bundle, so href='/global.css' became href='global.css'&lt;/li&gt;
&lt;li&gt;do this for the favicon as well&lt;/li&gt;
&lt;li&gt;build the build command: npm run build&lt;/li&gt;
&lt;li&gt;copy the public directory to some target application directory on the target server&lt;/li&gt;
&lt;li&gt;add an "app" to the default site in IIS on the target server, give it a name, let's say it's "blackbird," and when it asks for the directory path, set it to "public" in the application directory&lt;/li&gt;
&lt;li&gt;the app url then is: &lt;a href="http://target_server_name/blackbird"&gt;http://target_server_name/blackbird&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The main takeaway was to fix the paths in index.html. I could see in the console the errors that the app was not finding these files and clearly the app was not starting up.&lt;/p&gt;

&lt;p&gt;This does &lt;strong&gt;NOT&lt;/strong&gt; seem to break anything during development when I run "npm run dev"&lt;/p&gt;

</description>
      <category>iis</category>
      <category>svetle</category>
      <category>deployment</category>
    </item>
  </channel>
</rss>
