Deploying ASP.NET Core to linux -- avoiding 50 MB deploy? -


i able deploy coreclr asp.net apps linux , have them run, hurray. using

dnu publish --no-source -o <dest-dir>

which gives me dest-dir full of many coreclr packages, 1 of package published app specifically.

this folder pretty big, around 50 mb simple web application basic (no auth) described @ https://azure.microsoft.com/en-us/documentation/articles/web-sites-create-web-app-using-vscode/ .

is there sensible way deploy linux without pushing around? can rid of bunch of coreclr packages somehow? there way of deploying source-only , doing work on server (i may have seen this, lost if did)?

you publishing without runtime (--runtime option on dnu publish) reduces bundle size significantly.

you need somehow packages on server. if deploy sources, you'll have restore download same amount of packages. also, running sources makes application start slower (depending on number of dependencies).

however, if publish entire bundle once , app's dependencies don't change, can upload folders corresponding projects, instead of re-uploading dependencies.


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -