Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hosting ASP.NET Core application on shared Linux hosting

Now asp.net core has been released so we can develop/deploy .net application on any platform.

I am trying to play with asp.net core and able to run my application on ubantu os(On Virtual Machine). But i just wanted to hosted dot net core application on shared linux hosting environment where simply upload published file.

I was following Tony's blog, to play with core.

We need DNVM, DNU and DNX to run application, but we don't have terminal to execute these commands on shared hosting.

Help me figure out the solution.

like image 274
Manoj Verma Avatar asked Aug 06 '16 20:08

Manoj Verma


People also ask

Can .NET Core be hosted on Linux?

When Microsoft launched their . Net Core framework the key selling point was it is a cross-platform framework, which mean't that now we can host our . Net application not only on Windows but on Linux too, so let's see how we can deploy .

How do I deploy a .NET Core application in Linux?

Use the Elastic Beanstalk console to launch an Elastic Beanstalk environment and deploy the source bundle. For Platform, select . NET Core on Linux. Choose Local file, choose Choose file, and then open the source bundle.

Where can I host a .NET Core application?

In general, to deploy an ASP.NET Core app to a hosting environment: Deploy the published app to a folder on the hosting server. Set up a process manager that starts the app when requests arrive and restarts the app after it crashes or the server reboots.


1 Answers

It is somewhat possible... and actually, Scott Hanselman just did it using .NET Core 2.1 (still in preview, although). He got it running on GoDaddy's shared Linux plan. You may follow his step by step here, but you are strongly adviced not to do it.

like image 60
tvdias Avatar answered Sep 20 '22 11:09

tvdias