在AWS S3上部署Angular 2应用 [英] Deploy Angular 2 app on AWS S3

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

问题描述

如何在aws s3上部署Angular 2应用程序?我只需要上传src文件夹还是使用node_modules上传?我的代码有什么需要做的吗?

我有aws面板用于通过浏览上传文件.请帮助我继续.

How to deploy Angular 2 app on aws s3 ? Do I need to upload only src folder or with node_modules ? Is there anything I need to do with my code ?

I have aws panel to upload files through browse. Please help me to go ahead.

推荐答案

我解决了这个问题.我正在使用href,这就是为什么它显示404错误.我使用了routerLink,它解决了我的问题.

I solved this issue. I was using href that's why It was giving 404 error. I used routerLink and it solved my problem.

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

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