Deploying sites from dotCMS - old version
This guideline list out all the steps involve to deploy a site from dotCMS.
Step 1: Push Publishing from dotCMS to AWS
- When a page/file is completed in forCMS, it needs to be saved and published.
- Before push publishing to AWS, it is a good practice to republish the pages/files we want to push.
- Select Push Publish to push the required files to AWS temporary folder. This folder stores all static HTML, JS, CSS, Assets exported from dotCMS.
- In the Push Publish popup windows, select the correct branch to push to. The branch without a client code at the end is used for all internal sites. Otherwise please push to the branch with correct client code.
- Once the files are pushed, the status can be monitored in Site Browser > Publishing Queue
Step 2: Deploy to Test Environment
- To deploy the sites built in new framework, you need to have access to Jenkins at http://54.245.8.122:8080
- When deploying to Test Environment, Jenkins downloads all the static files we pushed to Temporary AWS folder in Step 1, re-builds them to a desired structure, optimizes for performance, then upload the new files to Test bucket in AWS.
- Select a Jenkins project in homepage, e.g. EuphoricFeet.
- Select "Build with Parameters" from the left menu.
- In the next screen, select ENV as Test, LANGUAGE, and dotCMS_INSTANCE as sandbox, then press Build.
- Note: dotCMS_INSTANCE variable is to determine from which dotCMS instance we push published the site. Right now we are all working on Sandbox environment, but later on we will have Sandbox for Development Team, Production for CM and Marketing teams to use for updates and language versions, and Client Authoring for Client projects. So for EuphoricFeet as in below sample screenshot, we might have 2 different versions from Sandbox and Production, this variable allow us to choose the correct one we push published to deploy.
- Once the process is completed, you can check the test domain, structure as test.domain.com
=============================================================================
- To perform deployment for old framework sites, you need to have access to Jenkins at http://54.191.150.142:8080/
- There are 2 types of projects in this Jenkins:
- Projects for sites which are built with the previous framework: They are listed in the homepage with, except "CMS-oldJobsManualRunner"
- Projects for sites which are built with the older framework: They are combined within "CMS-oldJobsManualRunner"
- To deploy a previous-framework site to Test:
- Select a Jenkins project in homepage, e.g. CMS-ConsciousPoker.
- In the next screen, keep Deployment_Path as Test, select the desired LANGUAGEISO, then press Build.
- To deploy an older-framework site to Test:
- Select "CMS-oldJobsManualRunner", then select Build with Parameters from the left menu.
- Select desired site to deploy in PROJECT dropdown.
- Select the language folder you want to deploy in FOLDER dropdown, e.g. EN.
- Keep Deployment_Path as Test, then click Build.
- Continue to deploy pub-assets by selecting pub-assets in FOLDER dropdown. If you don't have any changes in pub-assets folder, you can skip this step.
Step 3: Deploy to Live Environment
- Perform the same steps as deploying to Test Environment, but select "Live" in Deployment_Path dropdown.
- When deploying to Live environment, Jenkins simply copies everything from the Test bucket in AWS over to the Live bucket. It ensures that new changes pushed from dotCMS but not yet deployed to Test Environment for verification will not get to the Live Environment.