<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Liferay7 Theme -Gulp watch not working when gogo shell is on different port</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=111465720" />
  <subtitle>Liferay7 Theme -Gulp watch not working when gogo shell is on different port</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=111465720</id>
  <updated>2026-04-04T13:17:49Z</updated>
  <dc:date>2026-04-04T13:17:49Z</dc:date>
  <entry>
    <title>RE: Liferay7 Theme -Gulp watch not working when gogo shell is on different</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111478776" />
    <author>
      <name>Narsingh Pal</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111478776</id>
    <updated>2018-11-07T14:24:36Z</updated>
    <published>2018-11-07T14:24:36Z</published>
    <summary type="html">&lt;p&gt;Ok. Found the solution. Might be helpful for anyone facing similar issue.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Run the &lt;strong&gt;gulp watch&lt;/strong&gt; with additional argument&lt;/p&gt;
&lt;pre&gt;
&amp;quot;--port &amp;lt;gogoshell port number&amp;gt;&amp;quot; e.g. 

&lt;strong&gt;gulp watch --port 11312
&lt;/strong&gt;
&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards &lt;/p&gt;
&lt;p&gt;Narsingh Pal &lt;/p&gt;</summary>
    <dc:creator>Narsingh Pal</dc:creator>
    <dc:date>2018-11-07T14:24:36Z</dc:date>
  </entry>
  <entry>
    <title>Liferay7 Theme -Gulp watch not working when gogo shell is on different port</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111465719" />
    <author>
      <name>Narsingh Pal</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111465719</id>
    <updated>2018-11-06T12:10:54Z</updated>
    <published>2018-11-06T12:10:54Z</published>
    <summary type="html">&lt;p&gt;In my portal-ext.properties file, the gogo shell is configured for
  port &lt;strong&gt;11312&lt;/strong&gt; - [&lt;em&gt;default is 11311&lt;/em&gt;].&lt;/p&gt;
&lt;pre&gt;
module.framework.properties.osgi.console=localhost:11312&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Due to this setting, the theme gulp &amp;quot;watch&amp;quot; task is not
  working, and I get below error on the command prompt from where I try
  to run the gulp task&lt;/p&gt;
&lt;div class="portlet-msg-error"&gt;&amp;quot;Cannot connect to gogo shell.
  Please ensure local Liferay instance is running.&amp;quot;&lt;/div&gt;
&lt;p&gt;I tried to dig a bit further and found that watch.js file has this
  connection setting hardcoded to use port 11311.&lt;/p&gt;
&lt;p&gt;
  &lt;img src="/documents/14/110203813/watch-js.png/ab4e3f29-a52d-debe-12d9-1b81957c168d?t=1541506762523" /&gt;&lt;/p&gt;
&lt;p&gt;Below is my gulpfile.js&lt;/p&gt;
&lt;pre&gt;
'use strict';

var gulp = require('gulp');
var liferayThemeTasks = require('liferay-theme-tasks');

liferayThemeTasks.registerTasks({
   gulp: gulp
});&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;
  &lt;span style="font-size: 18.0px;"&gt;
    &lt;strong&gt;Is there any way, by which I can configure my gogo shell
      port &lt;/strong&gt;
    &lt;em&gt;[e.g. in gulpfile.js]&lt;/em&gt;
    &lt;strong&gt;, so that gulp watch task works properly ?&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Many thanks in advance!!&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Narsingh Pal&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Narsingh Pal</dc:creator>
    <dc:date>2018-11-06T12:10:54Z</dc:date>
  </entry>
</feed>
