Posts

Showing posts from February, 2020

Useful tips...Part1

Image
How to save credentials in Git? When we pull or push in repository using git bash or command line it asks us for user name & password every time.This seems very irritating to input it every time. To avoid this we can save our credentials in Git using below steps. 1: Give  below command $ git config credential.helper store 2: Now use command git pull 3: You will see that Git will ask you for entering user name & password. Provide username & password. Same user name & password will be saved inside git. 4: Again try git pull & you will notice that it will not prompt you for user name & password. It will use the credentials which we have saved in step 3. 5: Git stores credentials in text file named  .git-credentials  inside C:\Users\your-window-user How to rebuild client Libraries in AEM? In some scenarios when we have problem while building the client libraries,we may need to rebuild our client libraries manually. One such scenario is th

AEM Run Modes

Image
Run modes play an important role in aem. Run modes maps to an AEM instance. They are useful in case we want to provide diff configurations & logic based on the environments. Refer below link to learn about run modes in details. https://helpx.adobe.com/in/experience-manager/6-4/sites/deploying/using/configure-runmodes.html How to check the run mode of an AEM Server. Go to Felix Console . Go to Status tab in Navigation and click on sling settings option . Here you can see the Run Modes Direct link for accessing the same is http://localhost:4502/system/console/status-slingsettings To access AEM run modes in Sightly(HTL):- There is a way to read run modes in sightly which can be further used to write your logic based on  environments. Suppose there is a use-case where you want to display some warnings/messages based on the environment then you can easily do it in sightly without writing any logic in sling models or wcmusepojo. Here we are using