Can the CLI tool build and deploy fragments?

Note: please note that Liferay has renamed its Liferay Experience Could offerings to Liferay SaaS (formerly LXC) and Liferay PaaS (formerly LXC-SM).

Issue

  • Locally, after making changes to fragments, I can promote those changes using the command npm run import.
  • Is there a similar way to promote code through the CLI?

Environment

  • Liferay PaaS

Resolution

  • The CLI tool cannot build fragments.
  • Instead, fragments should be built locally using npm run compress
  • Then added to the liferay/configs/environment/deploy folder in your local repo before pushing the changes to GitHub using the following steps:
    1. Add the fragment to the liferay/configs/environment/deploy folder in my local repo
    2. Push the changes to GitHub
    3. Deploy the build to my environment
    4. Check that the fragment is present

Additional Information

¿Fue útil este artículo?
Usuarios a los que les pareció útil: 0 de 0