5

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

Davide Icardi
  • 11,919
  • 8
  • 56
  • 77
  • Your app looks fine, though I'm not at all familiar with cloud9. Does Kestrel's 0.0.0.0 work with dnx? – Matt DeKrey May 21 '15 at 21:56
  • Servers running on Cloud9 workspaces need to listen to `0.0.0.0:8080` for them to accessible from the outside. Which IP:PORT are you running your server on? – Mutahhir May 22 '15 at 07:53
  • @Mutahhir Yes, my command is: `"kestrel": "Microsoft.AspNet.Hosting --server Kestrel --server.urls http://0.0.0.0:8080"` – Davide Icardi May 22 '15 at 07:55
  • I suspect it is some problem with `mono` or `kestrel` because the fact that the CPU goes to 100% for the mono process and it seems to be stuck. – Davide Icardi May 22 '15 at 07:58
  • Hmm, even if CPU is 100%, and the process isn't killed, it should work. Is there some kind of error output or a flag you could turn on to get it? – Mutahhir May 22 '15 at 09:36
  • There seems to be an issue with Kestrel on Linux. See here: http://carolynvanslyck.com/blog/2014/09/dotnet-vnext-impressions/ Scroll down to **Bye Bye IIS** then **Kestrel** to see the info section. – Mutahhir May 22 '15 at 09:44
  • @DavideIcardi were you able to get ASP.NET 5 running on C9? – Roman Mik Dec 07 '15 at 18:45
  • @RomanMik Yes! Using rc1 all seems to work fine! – Davide Icardi Dec 08 '15 at 15:45

1 Answers1

1

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

Community
  • 1
  • 1
Davide Icardi
  • 11,919
  • 8
  • 56
  • 77