{"id":212,"date":"2018-04-01T08:22:14","date_gmt":"2018-04-01T08:22:14","guid":{"rendered":"http:\/\/windows.emacslisp.com\/?p=212"},"modified":"2018-04-01T08:40:53","modified_gmt":"2018-04-01T08:40:53","slug":"asp-net-core-publish-on-ubuntu","status":"publish","type":"post","link":"http:\/\/windows.emacslisp.com\/index.php\/2018\/04\/01\/asp-net-core-publish-on-ubuntu\/","title":{"rendered":"Asp.net Core publish on Ubuntu"},"content":{"rendered":"<p>1. Download asp.net core sdk 2 from Microsoft website<br \/>\n2. link &#8216;dotnet&#8217; command line to &#8216;\/usr\/bin\/dotnet&#8217;<br \/>\n3. publish project and zip all binary files including dlls, scp zip to ubuntu vps<br \/>\n4. <strong>export ASPNETCORE_URLS=&#8221;http:\/\/*:80&#8243;<\/strong><br \/>\nThis step is very important, because by default &#8216;dotnet&#8217; command only create port for &#8216;localhost:5000&#8217;.<br \/>\nwithout this command, public network interface &#8216;eth0&#8217; may not get listen any port.<\/p>\n<p>5. run &#8216;dotnet Target-Project.dll&#8217; <\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Download asp.net core sdk 2 from Microsoft website 2. link &#8216;dotnet&#8217; command line to &#8216;\/usr\/bin\/dotnet&#8217; 3. publish project and zip all binary files including dlls, scp zip to ubuntu vps 4. export ASPNETCORE_URLS=&#8221;http:\/\/*:80&#8243; This step is very important, because &hellip; <a href=\"http:\/\/windows.emacslisp.com\/index.php\/2018\/04\/01\/asp-net-core-publish-on-ubuntu\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/windows.emacslisp.com\/index.php\/wp-json\/wp\/v2\/posts\/212"}],"collection":[{"href":"http:\/\/windows.emacslisp.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/windows.emacslisp.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/windows.emacslisp.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/windows.emacslisp.com\/index.php\/wp-json\/wp\/v2\/comments?post=212"}],"version-history":[{"count":3,"href":"http:\/\/windows.emacslisp.com\/index.php\/wp-json\/wp\/v2\/posts\/212\/revisions"}],"predecessor-version":[{"id":215,"href":"http:\/\/windows.emacslisp.com\/index.php\/wp-json\/wp\/v2\/posts\/212\/revisions\/215"}],"wp:attachment":[{"href":"http:\/\/windows.emacslisp.com\/index.php\/wp-json\/wp\/v2\/media?parent=212"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/windows.emacslisp.com\/index.php\/wp-json\/wp\/v2\/categories?post=212"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/windows.emacslisp.com\/index.php\/wp-json\/wp\/v2\/tags?post=212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}