简体   繁体   English

Angular项目(dist文件夹)部署在Websphere应用服务器

[英]Angular project(dist folder) deployment in Websphere Application server

can any one provide the steps to deploy the Angular "ng build" command generated /dist folder in IBM Websphere application server.谁能提供在IBM Websphere应用服务器中部署Angular“ng build”命令生成的/dist文件夹的步骤。

Thanks in advance.提前致谢。

I use it at work but i don't really know the configuration of the server.我在工作中使用它,但我真的不知道服务器的配置。 On the application side you can do the following:在应用程序端,您可以执行以下操作:

Manual method手动方式

  1. Compile in production mode在生产模式下编译

  2. Create a folder WEB-INF : in this folder configure a web.xml with the information you need (in my case datasources, basic authentication and http operations allowed)创建一个文件夹WEB-INF :在此文件夹中配置一个web.xml与您需要的信息(在我的情况下,数据源,基本身份验证和 Z80791B3AE7002CB88C246876D9FAA8FZ 操作允许)

  3. Create a folder META-INF containing a manifest.MF (bretty much useless for me) and a context.xml containing only the context path of the application创建一个META-INF文件夹,其中包含 manifest.MF(对我来说几乎没用)和context.xml仅包含应用程序的上下文路径

  4. Put theese folders alongside the compiled code将这些文件夹放在已编译的代码旁边

  5. Now create a.war file: i use a terminal command like this:现在创建一个 .war 文件:我使用这样的终端命令:

    jar -cvf yourProject.war -C C:\...\yourProject\dist\yourProject. Basically it means: take all the files inside the specified path (the dot is important) and create a war with them.基本上它的意思是:获取指定路径内的所有文件(点很重要)并与它们进行战争。

IDE method IDE方法

I use NetBeans because with an IDE is all more confortable.我使用 NetBeans 因为使用 IDE 更加舒适。 The main difference is that you don't launch the jar -cvf manually , but you simply build the project, and depending which ide you're using the context.xml , the manifest.mf and the web.xml might be already there. The main difference is that you don't launch the jar -cvf , but you simply build the project, and depending which ide you're using the context.xml , the manifest.mf and the web.xml might be already there.

Before that you want to copy the compiled code into the Web Pages folder , then I build the project.在此之前你想将编译好的代码复制到Web Pages 文件夹中,然后我构建项目。


Finally I install the application using the IBM console.最后,我使用 IBM 控制台安装应用程序。 Hope this works for you!希望这对你有用!

PS This method is a little bit clunky, maybe there is a better one... PS这个方法有点笨拙,也许有更好的方法...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将Angular 5部署到IIS服务器,从dist文件夹导航的路由不起作用 - Angular 5 deployment to IIS server , navigation routes from dist folder not working 将我的angular 2项目dist文件夹打包为dropwizard应用程序的资产包 - Packaging my angular 2 project dist folder as an asset bundle for dropwizard application 使用Docker构建角度项目并提取dist文件夹 - Build angular project with docker and extract dist folder 从dist文件夹恢复Angular 4项目 - Restore Angular 4 project from dist folder 如何将angular 7项目直接部署到我的Web服务器,以便我不应该总是在部署后迁移dist文件夹? - How to deploy angular 7 project directly to my webserver, so that i shouldn't migrate my dist folder always after deployment? 资产未从项目复制到 Angular 7 库中的 dist 文件夹 - Assets not copied from project to dist folder in Angular 7 library 如何将Angular 2应用程序独立部署(使用dist文件夹) - How to deploy Angular 2 application as a standalone (using dist folder) 生产服务器中的Angular 2应用程序部署 - Angular 2 application deployment in production server 无法使用WAMP服务器中的dist文件夹部署Angular 5 - Unable to deploy Angular 5 using dist folder in WAMP server Angular4 + MVC + cli +使用cli build命令生成的dist文件夹进行部署 - Angular4 + MVC + cli + deployment using dist folder generated from cli build command
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM