PDA

View Full Version : Deploy ExtReact to Tomcat



happyboyhk
10 Sep 2018, 7:38 AM
hi all,

Any step or guide to build a production version to Tomcat?

Thanks

Forum_Adm
10 Sep 2018, 12:02 PM
Hello there- I just sent your question over to a team member that should be able to help. Thank you for your patience while we work on this for you.

pakumar
11 Sep 2018, 10:02 AM
Hi there,





Deploying to Tomcat has nothing to do with ExtJS/ExtReact specifically. You can create one WAR file if it is a small application. Take a look at the thread where this was discussed - https://www.sencha.com/forum/showthread.php?70771-Deployment-strategy-for-tomcat


After creating an ExtReact App, just run npm run build, then copy build folder and drop in public folder of your web server
https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#deployment

Regards,
Pavan.
Sencha Support.

happyboyhk
12 Sep 2018, 7:34 PM
Hi there,





Deploying to Tomcat has nothing to do with ExtJS/ExtReact specifically. You can create one WAR file if it is a small application. Take a look at the thread where this was discussed - https://www.sencha.com/forum/showthread.php?70771-Deployment-strategy-for-tomcat


After creating an ExtReact App, just run npm run build, then copy build folder and drop in public folder of your web server
https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#deployment

Regards,
Pavan.
Sencha Support.

Thank you for your reply.

I tried npm run build and copy the files under build folder to Tomcat \webapps\demoProject
However, I found that the application cannot be shown with the following error

57726

It seem those files do not show in correct path.
What can I do?

Thanks