如何将 .Net 应用程序部署到 heroku
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/29100993/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to deploy .Net application to heroku
提问by Nick Kahn
I do not see much help when it comes to deploying .Net app to Heroku, Is there any tutorial for deploying .Net
在将 .Net 应用程序部署到 Heroku 时,我没有看到太多帮助,是否有任何部署 .Net 的教程
回答by jincod
This is demo app on asp.net 5 beta7 https://github.com/jincod/AspNet5DemoApp. Using buildpack forked from heroku/dotnet-buildpack.
这是 asp.net 5 beta7 https://github.com/jincod/AspNet5DemoApp上的演示应用程序。使用从 heroku/dotnet-buildpack 分叉的 buildpack。
heroku buildpacks:set https://github.com/jincod/dotnetcore-buildpack
git push heroku master
回答by jr0cket
You can try running ASP.Net & .Net console applications using the open source Mono framework. There is a buildpack to deploy these apps for you on Heroku at:
您可以尝试使用开源 Mono 框架运行 ASP.Net 和 .Net 控制台应用程序。有一个 buildpack 可以在 Heroku 上为您部署这些应用程序:
https://github.com/friism/heroku-buildpack-mono
https://github.com/friism/heroku-buildpack-mono
To deploy your app on Heroku with this buildpack, install the Heroku toolbeltand run the following commands in the root of your project folder
要使用此构建包在 Heroku 上部署您的应用程序,请安装Heroku 工具带并在项目文件夹的根目录中运行以下命令
heroku createheroku config:add BUILDPACK_URL=https://github.com/friism/heroku-buildpack-mono/git push heroku master
heroku createheroku config:add BUILDPACK_URL=https://github.com/friism/heroku-buildpack-mono/git push heroku master
Also read Running .Net on Herokufor more details and some limitations
另请阅读在 Heroku 上运行 .Net 以了解更多详细信息和一些限制

