Highlighted

publish

Avatar

Avatar

shivangim985778

Avatar

shivangim985778

shivangim985778

11-10-2018

how to publish a website(one that i will create) from author to publish instance

Replies

Highlighted

Avatar

Avatar

raj_mandalapu

Avatar

raj_mandalapu

raj_mandalapu

11-10-2018

You can do this several ways check this

https://helpx.adobe.com/in/experience-manager/6-3/sites/classic-ui-authoring/using/classic-page-auth...

Before that you need to setup replication agent, if you are using 4502 and 4503 then y default it comes otherwise you need to configure manually

Replication - docs.adobe.com

Highlighted

Avatar

Avatar

Veena_Vikram

MVP

Avatar

Veena_Vikram

MVP

Veena_Vikram
MVP

11-10-2018

Hi Shivangi

   Which version are you using ? Are you working in classic UI or Touch UI ? Adding to what raja mentioned. Before publishing your website please make sure the below things

1) Deploy your code to publish

2) Open the felix console and make sure all your bundles are in active state

3) Assuming the replication agents are set ,  Test the connection of your replication agent from http://localhost:4502/etc/replication/agents.author/publish.html (change this URL according to your replication agent)

Click test connection

1593722_pastedImage_1.png

If you get succeed , your rep agent is setup properly

1593723_pastedImage_2.png

3) Once the code is deployed to publish  , you can do the below to publish a website or page ?

   1) either you can go to http://localhost:4502/etc/replication/treeactivation.html  (Should be done with extra care as this will publish all the content below this path . So it might cost you a lot of this is done carelessly and unless 100% sure)

1593724_pastedImage_3.png

2) To activate any page from siteadmin (classic) you can click on the page and click "Activate" or right click and "Activate" . If the light turns green , that means the content is published

1593734_pastedImage_6.png

3) In touch UI , go to sites.html and select the page you want to publish and click on "Publish"

1593735_pastedImage_7.png

4) If you are in a page and want to publish it , click on the properties tab in the top left corner and click "Publish"

1593736_pastedImage_8.png

5) In Classic UI , same can be done from Side Kick like below

1593737_pastedImage_9.png

Hope this helps

Thanks

Veena

Highlighted

Avatar

Avatar

shivangim985778

Avatar

shivangim985778

shivangim985778

11-10-2018

thanks it seems very helpful for me but can you please tell me how to deploy code in to publish and i am using AEM 6.4

Highlighted

Avatar

Avatar

Veena_Vikram

MVP

Avatar

Veena_Vikram

MVP

Veena_Vikram
MVP

11-10-2018

To deploy any package , if it is a maven package that you are having , first you need to build the package using mvn clean install command. Once build is success , you will get the deployable package under apps.

If archetype 13 or 14 , you will have ui.apps folder , go to target inside that and your package will be present there .

1593738_pastedImage_0.png

You will have  a zip file inside the target folder.

This zip you can install via package manager

You can go through the package manager documentation and try this out one by one before doing real deployment. How to Work With Packages

Learn how to work with the packages and the you can upload the package and install it

Highlighted

Avatar

Avatar

shivangim985778

Avatar

shivangim985778

shivangim985778

11-10-2018

i have deployed my code in author instance but how to do on publish?

Highlighted

Avatar

Avatar

Veena_Vikram

MVP

Avatar

Veena_Vikram

MVP

Veena_Vikram
MVP

11-10-2018

The same way you do in author.

I would not recommend replicating the code package from author to publish. Normally for our deployments author and publish are deployed separately. The process is same for both.

Highlighted

Avatar

Avatar

shivangim985778

Avatar

shivangim985778

shivangim985778

15-10-2018

how to deploy code on publish instance

Highlighted

Avatar

Avatar

shivangim985778

Avatar

shivangim985778

shivangim985778

15-10-2018

by default it goes on author but how to do for publish

Highlighted

Avatar

Avatar

raj_mandalapu

Avatar

raj_mandalapu

raj_mandalapu

15-10-2018

How are deploying your code through the package manager or MVN command?

If it is a package manager then you can directly open the below URL and upload your package and install

http://localhost;4503/crx/crx/packmgr/index.jsp

If it is through mvn command then you need to check what profile is configured in your POM.xml file. check below example code, if something exists like this then you need to run MVN publish command

mvn -autoInstallPackagePublish clean install

<profile>

  <id>autoInstallPackagePublish</id>

  <activation>

  <activeByDefault>false</activeByDefault>

  </activation>

  <build>

  <plugins>

  <plugin>

  <groupId>com.day.jcr.vault</groupId>

  <artifactId>content-package-maven-plugin</artifactId>

  <executions>

  <execution>

  <id>install-package-publish</id>

  <goals>

  <goal>install</goal>

  </goals>

  </execution>

  </executions>

  <configuration>

  <targetURL>http://${aem.publish.host}:${aem.publish.port}/crx/packmgr/service.jsp</targetURL>

  <failOnError>true</failOnError>

  <failOnMissingEmbed>true</failOnMissingEmbed>

  </configuration>

  </plugin>

  </plugins>

  </build>

  </profile>