[英]How to deploy Angular front end only application to AWS (S3 or any other) generated using Jhipster?
I have generated application code separately for front end (Angular) and back end (JAVA) using Jhipster .我已经使用Jhipster分别为前端(Angular)和后端(JAVA)生成了应用程序代码。 I know how to deploy JAVA to AWS, but I am not sure about Angular application.我知道如何将 JAVA 部署到 AWS,但我不确定 Angular 应用程序。 For a normal angular app, I would build using ng build --prod and upload all the files in dist folder in AWS s3.对于普通的 angular 应用程序,我将使用 ng build --prod 构建并上传 AWS s3 中 dist 文件夹中的所有文件。 But with this jhipster generated angular only app, I am not sure how to do a deployment?但是有了这个 jhipster 生成的 angular 唯一的应用程序,我不确定如何进行部署? Could you please suggest a way to do?你能建议一种方法吗?
Thanks in advance.提前致谢。
I found out the solution.我找到了解决方案。 To get the files, we need to run npm run build or npm run webpack:prod .要获取文件,我们需要运行npm run build或npm run webpack:prod 。 All the necessary files will be available under /build/resources/main/static/ folder.所有必要的文件都将在/build/resources/main/static/文件夹下可用。 Then upload the files to S3 as we usually do for normal angular app.然后像我们通常对普通 angular 应用程序所做的那样将文件上传到 S3。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.