发布Angular 2应用程序(部署) [英] Publishing Angular 2 app (deployment)
问题描述
我有Linux网络托管我正在托管PHP& SQL网站,我想知道如何托管角度2应用程序,因为我运行它使用 npm开始
。
有人告诉我有关Amazon EC2,但是我不知道它是如何运作的,因为我第一次主持这样的应用程序。
我读了这个:关于发布Angular 2应用程序,并注意到我需要使用JSPM(?)编译我的应用程序并使用它不知何故。所以我试图使用它。它在我的应用程序根目录中创建了 jspm_packages
文件夹,但我不知道它是什么意思,或者如何使用它。
- 任何帮助如何发布我的应用程序与网站托管或亚马逊EC2 /任何其他方式,我可以允许其他人看到和使用我的应用程序?我的应用是Angular2和Laravel作为后端。
其实这里有两个步骤:
- 使用Gulp或其他工具(如Webpack / JSPM)打包应用程序。在Gulp的情况下看到这个问题:
/ li>
- 上传静态Web服务器中的相应文件。
第二步,服务器可以在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:
- Package your application with Gulp or another tools like Webpack / JSPM. See this question in the case of Gulp:
- Upload the corresponding files within a static web server.
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屋!