在Heroku上托管Angular2 [英] Hosting Angular2 on Heroku
问题描述
我很难找到关于如何在Heroku或任何其他托管服务提供商上为这个问题托管一个angular2应用程序(希望与Typescript)的教程。
理想情况下,我想找到一种在Heroku上运行此回购的方法,但在Heroku上的任何angular2 / typescript回购指南都会有所帮助:https://github.com/auth0/angular2-authentication-sample
任何指导或建议,你可以提供将不胜感激
您将需要服务器应用程序/框架。 >
此存储库包含来自Express生成器应用程序和Quick-start Angular 2应用程序的文件。
- Git: https://github.com/vladotesanovic/angular2-express-slim
- Heroku演示: https://express-angular2-slim.herokuapp.com/
我还有另外一个例子可以用于Heroku:express + angular 2 + Procfile由Heroku)+其他库
- Git: https://github.com/vladotesanovic/angular2-express-starter
- Heroku演示:https://github.com/vladotesanovic/angular2-express-starter
你需要一个Heroku帐户。
Express上的Angular2(服务器端渲染)的官方回购:
https://github.com/angular/universal-starter
I am having trouble finding a tutorial on how to host an angular2 application (hopefully with Typescript) on Heroku or any other hosting provider for that matter.
Ideally, I'd like to find a way to run this repo on Heroku but guidance on any angular2/typescript repo on Heroku would be helpful: https://github.com/auth0/angular2-authentication-sample
Any guidance or advise you can offer would be greatly appreciated
You will need server app/framework for that.
This repository contains files from Express generator app and Quick-start Angular 2 app.
- Git: https://github.com/vladotesanovic/angular2-express-slim
- Heroku demo: https://express-angular2-slim.herokuapp.com/
I have one other example that is also ready for Heroku: express + angular 2 + Procfile ( needed by the Heroku ) + other libraries
- Git: https://github.com/vladotesanovic/angular2-express-starter
- Heroku demo: https://github.com/vladotesanovic/angular2-express-starter
You need an account on Heroku. Push this code as-is ( in both cases ).
Official repo from Angular2 ( server side rendering ) on Express: https://github.com/angular/universal-starter
这篇关于在Heroku上托管Angular2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!