发布Angular 2应用程序(部署) [英] Publishing Angular 2 app (deployment)

查看:164
本文介绍了发布Angular 2应用程序(部署)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最后,我完成了我的角度2应用程序的硬件部分,我想在服务器上看到它。



我有Linux网络托管我正在托管PHP& SQL网站,我想知道如何托管角度2应用程序,因为我运行它使用 npm开始



有人告诉我有关Amazon EC2,但是我不知道它是如何运作的,因为我第一次主持这样的应用程序。



我读了这个:关于发布Angular 2应用程序,并注意到我需要使用JSPM(?)编译我的应用程序并使用它不知何故。所以我试图使用它。它在我的应用程序根目录中创建了 jspm_packages 文件夹,但我不知道它是什么意思,或者如何使用它。




  • 任何帮助如何发布我的应用程序与网站托管或亚马逊EC2 /任何其他方式,我可以允许其他人看到和使用我的应用程序?我的应用是Angular2和Laravel作为后端。


解决方案

其实这里有两个步骤:





第二步,服务器可以在EC2上托管。但是您可以注意到,甚至可以使用gh页面在Github上进行托管。我认为此链接可以帮助您: https://gist.github.com/chrisjacob/833223。其实这取决于你的需要...


Finally I finished the hard part of my angular 2 application, and i want to see it live on the server.

I have Linux web hosting I'm hosting PHP & SQL websites and I am wondering how I can host the angular 2 app, since I'm running it using npm start.

Someone told me about Amazon EC2, but i'm not sure how it works since it my first time hosting such application.

I read this: About publishing Angular 2 application and noticed I need to compile my app with JSPM(?) and use it somehow. So I tried to use it. it created jspm_packages folder in my app root, but I have no idea what it meant to be or how to use it.

  • Any help how to publish my app with web hosting or Amazon EC2/Any other way I can allow other people to see and use my app? My app is Angular2 and Laravel as backend.

解决方案

In fact there are two steps here:

For the second step, the server can be hosted on EC2 for example. But you can notice that you can even host it on Github with gh-pages. I think that this link could help you: https://gist.github.com/chrisjacob/833223. In fact it depends on your need...

这篇关于发布Angular 2应用程序(部署)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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