简体   繁体   English

如何将 Angular 仅前端应用程序部署到使用 Jhipster 生成的 AWS(S3 或任何其他)?

[英]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 buildnpm 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.

相关问题 如何部署基于Angular2 Typescript的应用程序是AWS S3 - how to deploy an Angular2 Typescript based application is AWS S3 如何在 Jhipster Angular 生成的应用程序上使用 electron? - How to use electron on Jhipster Angular generated application? 在AWS S3上部署Angular 2应用程序 - Deploy Angular 2 app on AWS S3 如何使用docker部署具有角度6作为前端的Web应用程序,将后端的Asp点网核和SQL Server作为数据库部署在nginx上 - How to deploy web application having angular 6 as front end, Asp dot net core on backend and SQL server as database on nginx using docker JHipster - 创建一个新的 Angular 前端环境 - JHipster - Create a new Angular Front End Environment 从 angular 前端访问 S3 中的私有数据 - Acces private data in S3 from angular front end 如何在具有 cPanel 的实时服务器上部署具有独立前端(角度)和后端(弹簧启动)的应用程序? - How do I deploy an application that has separate front end (angular) and back end (spring boot) on a live server with cPanel? 如何将Angular 4+(前端)部署到CDN? - How to Deploy Angular 4+ (front-end) to CDN? 将 angular 通用应用程序部署到 aws s3 存储桶不工作 ssr - Deploy angular universal app to aws s3 bucket not working ssr 如何使用 flask 将 Angular signaturePad blob 保存到 AWS S3 - How to save Angular signaturePad blob to AWS S3 using flask
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM