[英]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:在应用程序端,您可以执行以下操作:
Compile in production mode在生产模式下编译
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 操作允许)
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仅包含应用程序的上下文路径
Put theese folders alongside the compiled code将这些文件夹放在已编译的代码旁边
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.基本上它的意思是:获取指定路径内的所有文件(点很重要)并与它们进行战争。
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.