mago3d-CMS icon indicating copy to clipboard operation
mago3d-CMS copied to clipboard

Generate and deploy war

Open iyush1993 opened this issue 5 years ago • 1 comments

How do I deploy war of admin in tomcat? I tried to do so and have been failing.

I guess there might be something we need to do with artifactId or something I am not sure. But I can access the login page via localhost:9090/mago3d-admin/login/login.do. But once I enter the correct credentials and hit enter, it gets redirected to localhost:9090/login/process-login.do. I should be redirected to localhost:9090/mago3d-admin/main/index.do but it is just not working.

I am new to spring boot and have no clue what to do.

iyush1993 avatar Dec 05 '18 17:12 iyush1993

I used Google Translator.

Forgive me for being late. I was on business.

Is it possible to run mago3d-admin in a local environment? Can I go to the main page after logging in?

https://github.com/Gaia3D/mago3d/issues/157 In the above document, there is local environment setting in Korean. Google Translator will help you understand the content.

If you succeeded in a local environment On the server nginx + tomcat or You can run tomcat alone.

If you run gradle build on local The war file is created in build / libs /. Put it under tomcat's webapps. For linux server, window and configuration file For example, the directory path is different Put it in the real folder gradle build -Pprofile = real To apply settings for your server.

For f4d files nginx root or In tomcat alone, under the webapp of the deployed war so that f4d can be created. For tomcat alone there is no problem with source distribution In the case of war distribution, war is decompressed every time you reboot. I think we should put f4d inside war. Build.gradle is now commented out so that it does not package the f4d directory into war.

The rest seems to be the same as local.

If not, please contact us again.

cheonjeongdae avatar Dec 07 '18 07:12 cheonjeongdae