--- title: "Post Deploy Configurations" url: https://docs.catalyst.zoho.com/en/tutorials/workdrivesync/java/post-deploy-config/ description: "Build a web application that synchronizes file uploads and deletions between two folders in the Catalyst Stratus and Zoho WorkDrive through APIs, using Catalyst functions and Event Listener" last_updated: 2026-08-17T12:16:04Z service: All Services type: tutorial related_links: - name: "Event Listeners" url: /en/cloud-scale/help/event-listeners/introduction --- # Post Deploy Configurations ### Update CORS in Stratus To allow your application to Upload or Delete files in **Stratus**, you must whitelist your app domain in Stratus **Bucket CORS** settings. Without this configuration, Stratus will reject requests from unknown origins. To complete this setup, follow the below steps: 1. In the Stratus component. Go to the **Configuration** tab → **Bucket CORS** → **Add Domain**. ![permissions_done](https://catalyst-docs-development.zohostratus.in/images/tutorials/workdrivesync/bucket-cors-setup-stratus.webp) 2. From the pop-up that appears, select **PUT, GET** and **DELETE** as allowed request methods and paste your app domain obtained from the previous step in the Domain URL. ![permissions_done](https://catalyst-docs-development.zohostratus.in/images/tutorials/workdrivesync/bucket-cors-pop-up.webp) 3. Click **Add** to save the domain settings. ![permissions_done](https://catalyst-docs-development.zohostratus.in/images/tutorials/workdrivesync/stratus-request-mathods-selection.webp) > Note: If you are running the app locally using Catalyst Serve, add your localhost URL with the active port to the Bucket CORS list to enable Stratus access. ## Create Rule Now that the Publisher and the Event Function are configured, let us define how the events should be processed and delivered by setting up a Rule. Follow these steps to create the Rule: 1. In the Developer Console, select your project: *WorkDriveSync*. 2. Go to **Catalyst Signals** and click on **Rules** in the left navigation. ![Add Rule](https://catalyst-docs-development.zohostratus.in/images/tutorials/workdrivesync/signals-rule-creation-workdrive-sync.webp) 3. Click **Add Rule**, then provide a name and description for your rule. ![Provide name and description for the Rule](https://catalyst-docs-development.zohostratus.in/images/tutorials/workdrivesync/setup-rule-name-description.webp) ### Define Event Source 4. Under Source, click **Choose Event**, switch to **Catalyst Publishers** tab, and select the Cloud Scale Stratus Publisher you added earlier. Select the **Object Upload** event and click on **Next**. ![Choose event and select catalyst publisher](https://catalyst-docs-development.zohostratus.in/images/tutorials/workdrivesync/catalyst-publisher-stratus-event-object-upload.webp) 5. Choose your target bucket in the **Additional Settings** and click **Done**. ![Select target bucket and setup additional settings](https://catalyst-docs-development.zohostratus.in/images/tutorials/workdrivesync/additional-settings-pop-up-workdrive-sync.webp) 6. Click **Choose Target** and name your target. ![Choose Target and set target name](https://catalyst-docs-development.zohostratus.in/images/tutorials/workdrivesync/choose-target-workdrive-sync.webp) 7. Under Consumer Type, select the Event Function we created earlier using the CLI. ![Select event function](https://catalyst-docs-development.zohostratus.in/images/tutorials/workdrivesync/select-event-function-target.webp) 8. Set the **Dispatch Policy** to **Instant** and check on **Send as Single Event**. ![Select dispatch policy](https://catalyst-docs-development.zohostratus.in/images/tutorials/workdrivesync/single-select-event-workdrive.webp) 9. Save the target configurations, then click **Save** again to finalize the rule. ![Save the rule](https://catalyst-docs-development.zohostratus.in/images/tutorials/workdrivesync/click-save-rule-workdrive-sync.webp) 10. Repeat the above steps for the **Object Delete** event with the same configurations. Once you have created the Rule for **Object Delete**, the Rule setup is complete. You can now proceed to test the application.