title: Deploying .net Core web app to ubuntu linux
body: <p>I had an app I was developing in asp.net 4.5 and I wanted to move it to asp.net core and run on linux server (ubuntu).</p>
  
  <p>I've been having a number of challanges and unfortunately current documentation is not helpful. </p>
  
  <p>so...</p>
  
  <p>How should I package the app?</p>
  
  <p>The tech docs suggest building with the following command</p>
  
  <blockquote>
    <p>dnu publish --runtime dnx-coreclr-linux-x64.1.0.0-rc1-update1</p>
  </blockquote>
  
  <p>However I tried this on my local machine and it didn't have option to deploy linux version. When I run on server it comes up with a number of problems (covered later). So should I do this on server or get working on local machine.</p>
  
  <p>NB: I read in another stack overflow question that as long as its coreclr it doesn't matter whether its win or linux?</p>
  
  <p>I imagine after this is answered more questions will emerge..I've had so many issues with Core I'm wondering whether anybody has actually manged to deploy on app to Linux environment!</p>
  
  <p>Any help would be greatly appreciated!</p>
  
  <p><strong>Update</strong></p>
  
  <p>To provide further information current runtimes on local machine are...</p>
  
  <p>Active Version           Runtime Architecture Location                    Alias<br>
  ------ -------           ------- ------------ --------                    -----<br>
         1.0.0-beta5       clr     x64          C:\Users\Alex.dnx\runtimes<br>
         1.0.0-beta5       clr     x86          C:\Users\Alex.dnx\runtimes<br>
         1.0.0-beta5       coreclr x64          C:\Users\Alex.dnx\runtimes<br>
         1.0.0-beta5       coreclr x86          C:\Users\Alex.dnx\runtimes<br>
         1.0.0-rc1-update1 clr     x64          C:\Users\Alex.dnx\runtimes<br>
         1.0.0-rc1-update1 clr     x86          C:\Users\Alex.dnx\runtimes<br>
         1.0.0-rc1-update1 coreclr x64          C:\Users\Alex.dnx\runtimes<br>
         1.0.0-rc1-update1 coreclr x86          C:\Users\Alex.dnx\runtimes<br>
    *    1.0.0-rc1-update2 clr     x86          C:\Users\Alex.dnx\runtimes default
         1.0.0-rc1-update2 coreclr x86          C:\Users\Alex.dnx\runtimes    </p>
  
  <p>I want to compile it as coreclr linux....however when I run the dnu publish command above it says runtime doesn't exist even though I update coreclr from nuget?</p>
  
  <p>Do I need to specify an OS (linux or windows) when I build it or will a single published app run on both if its coreclr?</p>
  
  <p>This runs fine when imported into Azure but doesn't work when deployed to linux</p>