Automatically Deploying Theme Changes

Follow these steps to automatically preview your theme’s changes with the Watch task. Note that this task only works for themes that use the liferay JS Theme Toolkit, such as those created with the Liferay Theme Generator.

  1. Navigate to your theme’s root folder and run gulp watch. This sets up a proxy for your app server and opens it in a new window in the browser.

    Figure 1: Run the gulp watch task to automatically deploy any changes to your theme.

    Figure 1: Run the `gulp watch` task to automatically deploy any changes to your theme.

  2. Make a change to your theme and save the file. The updated files are built, compiled, and copied directly to the proxy port (e.g. 9080). CSS changes are deployed live, so no page reload is needed.

  3. Once you’re happy with the changes, re-deploy your theme to apply the changes to your site on your app server.

    Figure 2: The watch task notifies you that the changes are deployed.

    Figure 2: The watch task notifies you that the changes are deployed.

« Updating Your Theme's App ServerCreating a Thumbnail Preview for Your Theme »
この記事は役に立ちましたか?
0人中0人がこの記事が役に立ったと言っています