在Heroku上托管Angular2 [英] Hosting Angular2 on Heroku

查看:87
本文介绍了在Heroku上托管Angular2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很难找到关于如何在Heroku或任何其他托管服务提供商上为这个问题托管一个angular2应用程序(希望与Typescript)的教程。



理想情况下,我想找到一种在Heroku上运行此回购的方法,但在Heroku上的任何angular2 / typescript回购指南都会有所帮助:https://github.com/auth0/angular2-authentication-sample



任何指导或建议,你可以提供将不胜感激

解决方案

您将需要服务器应用程序/框架。 >

此存储库包含来自Express生成器应用程序和Quick-start Angular 2应用程序的文件。








我还有另外一个例子可以用于Heroku:express + angular 2 + Procfile由Heroku)+其他库





你需要一个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.


I have one other example that is also ready for Heroku: express + angular 2 + Procfile ( needed by the Heroku ) + other libraries

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆