Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running ASP.NET 5 on Cloud 9

Do you think it's technically possible to run ASP.NET 5 (vNext) inside Cloud9 environment?

I have followed the documentation on https://github.com/aspnet/home, everything seem to work fine, but when I run the command:

dnx . kestrel

mono is executed and start to use 100% of the CPU but the HTTP server is not working.

Here my sample application: https://github.com/davideicardi/aspnet5-on-cloud9

like image 925
Davide Icardi Avatar asked Nov 10 '22 13:11

Davide Icardi


1 Answers

Using ASP.NET 5 rc1 I have succesfully executed ASP.NET on Cloud 9.

Installing instruction for ASP.NET 5

https://github.com/aspnet/Home/blob/dev/GettingStartedDeb.md

After dnvm and dnx are installed restore packages using

dnu restore

If you receive HTTP timeout errors first use (see https://stackoverflow.com/a/31975260/209727):

export MONO_THREADS_PER_CPU=2000    
dnu restore

Then run the web server using:

dnx web

Note that port 8080 is the default used by cloud 9 ide.

Here my final repository on github: https://github.com/davideicardi/aspnet5-on-cloud9

like image 72
Davide Icardi Avatar answered Dec 17 '22 19:12

Davide Icardi