Page 1 of 1

Deploying admin to production server?

Posted: Wed Jul 16, 2014 1:25 pm
by southofsleep
Hello All,

When I create HeatClinic locally, it loads by going to http://localhost:8080, and the admin works by going to http://localhost:8080/admin

I am using Tomcat 7, with MySQL. But when I drop the .war files into Tomcat on my Production server and restart...it builds the project but it becomes: http://www.server.com/mycompany/ I had my ISP add this /mycompany/ context and the site loads fine on production....

But the issue is how to deploy the admin??? Basically it deploys to http://www.server.com/admin/ but is that the correct place? I would think it would need to be here: http://www.server.com/mycompany/admin/ ?

Can I get some feedback on which files to change that when I make the .war (mvn clean install) that it will deploy and the admin be available at /mycompany/admin/

The larger question is why it doesn't add /mycompany/ locally when I build....

Thanks!

Re: Deploying admin to production server?

Posted: Thu Jul 17, 2014 11:33 am
by phillipuniverse
The admin is a completely separate web application from the frontend. If you run a mvn install on the root of the project, you get 2 wars representing the 2 applications:

mycompany.war
admin.war

You might want to change the name of mycompany.war to ROOT.war if you are deploying on Tomcat; that will ensure that your site will be accessible from http://www.server.com (and not http://www.server.com/mycompany). You can change the <finalName> XML element in site/pom.xml to ROOT to accomplish this.

Since the admin is a completely separate web application, it gets deployed separately from the frontend war. Yes, http://www.server.com/admin is the correct place that you should be accessing the admin.

Re: Deploying admin to production server?

Posted: Thu Jul 17, 2014 5:10 pm
by southofsleep
Hi Phillip,

Thanks so much for your explanation. Yes, I see what to do now. Also, thanks for you and the broadleaf gang for creating broadleaf. I am a junior ATG developer and I have been looking foward to when someone created an open source commerce system using Java. Throughout my career I have worked on commerce sites with numerous platforms, i.e. php, ruby/rails, etc... and although the cool kids complain about how hard Java is to configure and came up with the "convention over configuration" motto, it's been my experience, that once you get your Java application setup, and tuned, there is absolutely no platform on the planet that can touch it in terms of speed, scalability and performance.

Thanks again! I'm having a blast learning and playing with the platform. It's really nice developing with IntelliJ, Tomcat, and MySQL. (my preference)

Re: Deploying admin to production server?

Posted: Tue Jul 29, 2014 2:16 pm
by phillipuniverse
Thanks for the feedback, we always like hearing people that enjoy using Broadleaf :D