When your theme was first created with the
Liferay Theme Generator,
you had to specify the app server’s location. This was done with the gulp init
task. Your theme uses this information to deploy to the proper server. If your
app server or site changes during development, you can update their
configuration information by manually running the gulp init
task.
Follow these steps:
-
Navigate to your theme’s root folder and run
gulp init
. -
Enter the path to your app server and site.
-
Your theme’s
liferay-theme.json
file contains the updated server configuration information:{ "LiferayTheme": { "appServerPath": "C:\\Users\\liferay\\opt\\Liferay\\bundles\\7.1-master-bundle\\bundles\\tomcat-8.0.32", "deployPath": "C:\\Users\\liferay\\opt\\Liferay\\bundles\\7.1-master-bundle\\bundles\\deploy", "url": "http://localhost:8080", "appServerPathPlugin": "C:\\Users\\liferay\\opt\\Liferay\\bundles\\7.1-master-bundle\\bundles\\tomcat-8.0.32\\webapps\\my-liferay-theme", "deployed": false, "pluginName": "my-liferay-theme" } }