Tuesday 24 July 2018

Run multiple Servers In Hybris


Requirement:-
I want to check both the electronics site and Powertools site at the same time. Run the 2 servers at a time to get two sites at a time.   

Follow the below steps to run two servers,

Step 1:-  Open the local.properties file.
  


Step 2:- Paste these properties in local.properties file.

     tomcat.http.port=8801
     tomcat.ssl.port=8802
     tomcat.ajp.port=8809
     tomcat.jmx.port=8803
     tomcat.jmx.server.port=8804
     solrserver.instances.default.port=8986
     solrserver.instances.standalone.port=8986
     solrserver.instances.cloud.port=8986

     tomcat.debugjavaoptions=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,
address=8002,suspend=n    






Step 3:- Do ant all or ant clean all & start the server with this command hybrisserver.bat





Step 4:- Now the server is running in port no 8802. Now we have to access the site by using 8802 port instead of 9002.







Importing Hybris Project into Intelij & Eclipse

         


Initially, I faced issue to import Hybris project into Intelij & Eclipse. Follow the below steps to import easily,
                          

Step 1:- Open Intelij IDE



Step 2:- Click on Create New Project. Below window will popup.




Step 3:- Click on Next button.





Step 4:- 

  Enter the project name and choose the path of your Hybris project up to Hybris folder and click on finish button. Wait for some time to load the project into the IDE after that all the files will be accessed.





Eclipse:-

-------

Step 1:- 

Open Eclipse in an empty workspace and click on the file and select import option.

  Step 2:- In General section select Existing Projects into workspace option.


Step 3:- 

               Browse the Hybris project directory up to Hybris folder and click on finish. All the files will be imported into the workspace.





    ========================= ALL THE BEST ================================