在Cloud 9上运行ASP.NET 5(Running ASP.NET 5 on Cloud 9)

编程入门 行业动态 更新时间:2024-10-24 05:17:18
在Cloud 9上运行ASP.NET 5(Running ASP.NET 5 on Cloud 9)

您认为在技术上可以在Cloud9环境中运行ASP.NET 5(vNext)吗?

我遵循https://github.com/aspnet/home上的文档,似乎一切正常,但是当我运行命令时:

dnx . kestrel

mono被执行并开始使用100%的CPU,但HTTP服务器不工作。

在这里我的示例应用程序: https : //github.com/davideicardi/aspnet5-on-cloud9

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

最满意答案

使用ASP.NET 5 rc1我在Cloud 9上成功执行了ASP.NET。

安装ASP.NET 5的指令

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

在安装了dnvm和dnx之后使用恢复软件包

dnu restore

如果首次使用HTTP超时错误(请参阅https://stackoverflow.com/a/31975260/209727 ):

export MONO_THREADS_PER_CPU=2000 dnu restore

然后使用以下命令运行Web服务器

dnx web

请注意,端口8080是云9 ide使用的默认端口。

在这里,我在github上的最终版本库: https : //github.com/davideicardi/aspnet5-on-cloud9

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

更多推荐

本文发布于:2023-08-06 16:29:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1454117.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:ASP   Cloud   Running   NET

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!