I set up continuos deployment with Azure
and GitHub
according to the document here . Everything seems to be working. I get an Active Deployment
tab with a success
message and when I push changes to my GitHub
repository Azure recognizes it and does the update.
But the link to my Java
and Tomcat
app isn't working. This is the link (with a different name but the structure is identical): http://myapp.azurewebsites.net/AppName
When I use FTP
to manually upload the war
file to webapps
the link does work.
What am I missing?
EDIT: It looks like the automatic scripts put my project into wwwroot
but not in wwwroot/bin/apache-tomcat/webapps.
Should I modify the script or copy it there myself?
If you want to deploy to a subfolder, try setting SCM_TARGET_PATH=wwwroot/bin/apache-tomcat/webapps
in the site's AppSettings (in the portal).
See this page for details.
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.