简体   繁体   中英

How to deploy grails war file on cpanel (support tomcat)

I have a web application with grails, I want to deploy this web application in cPanel by using .war file.I follow this guid , first I created database then added database info on my app datasource, made war file and uploaded war on PUBLIC_HTML file on cPanel, renamed war file to zip file and extract it. I checked url(sampleDomain.com/myApp) but it shows error like below:

Not Found
The requested URL /myApp was not found on this server.

I don't have any idea how to deploy this war file.

Given that your tomcat is working on your cPanel, you would save your war file in "webapps" folder and then start tomcat. Its tomcat's job to unzip the file and serve it. You don't need to manually unzip the war file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM