托管Angular 2应用程序 [英] Hosting Angular 2 app

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

问题描述

我是新来的 Angular 2 ,我知道主机 Angular 1.x 在共享主机上,如 GoDaddy ,但我不知道如何发布 Angular 2 应用程序,例如我有这个结构文件夹:

I'm new to Angular 2, I know host Angular 1.x on shared hosting like GoDaddy, but I don't have idea how publish Angular 2 application, for example I have this structure folder:

angular2-quickstart

--app
  app.component.ts
  main.ts

--node_modules

--typings

index.html
package.json
styles.css
systemjs.config.js
tsconfig.json
typings.json

我需要在ftp上传什么文件?

What file i need to upload on ftp?

我没有尝试任何东西因为我不知道如何继续

提前致谢!

I don't tried anything because I don't know how to proceed
Thanks in advance!

推荐答案

如果您没有后端,免费托管网站通常会寻找index.html来开始他们的工作。因此,您的文件夹结构是正确的,但您需要上传js文件而不是ts文件。

If you don't have a backend, free hosting sites will usually look for an index.html to begin their job. Hence, your folder structure is correct but you will need to upload the js files instead of the ts files.

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

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