Uploaded image for project: 'PUBLIC - Liferay IDE'
  1. PUBLIC - Liferay IDE
  2. IDE-1027

To reproduce issues in production I need to run Liferay without debug settings (portal-ide.properties)

    Details

    • Type: Story
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6.2
    • Fix Version/s: 3.0 M2
    • Component/s: Servers > Tomcat
    • Labels:
      None

      Description

      DevStudio always writes portal-ide.properties, which in turn activates portal-developer.properties. In some situations this is unwanted - e.g. to debug minifier filters etc.

      portal-ide.properties is included and overwritten unconditionally - no manual settings in this file persist. Due to the use of include-and-override=portal-developer.properties, that file is always loaded last and cannot easily be deactivated.

      A workaround is to edit, then writeprotect portal-ide.properties (chmod -w portal-ide.properties) - the server starts up fine with the changed settings. However, this is not obvious - this ticket is about making it more obvious:

      Two suggested solutions (pick one)

      • Provide a configuration for the server (either: what settings should IDE imply for the server, or just a boolean: Should portal-ide.properties be overwritten?).

      An alternative solution - maybe a lot easier - is to make the workaround more obvious and generate this instruction into the comment that is located at the top of portal-ide.properties. Currently, only the timestamp of the file is included in the comment

      #Wed Jun 26 09:05:01 CEST 2013
      json.service.auth.token.enabled=false
      include-and-override=portal-developer.properties
      auto.deploy.tomcat.conf.dir=/path/to/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/conf/Catalina/localhost
      jsonws.web.service.public.methods=*
      com.liferay.portal.servlet.filters.etag.ETagFilter=false
      com.liferay.portal.servlet.filters.header.HeaderFilter=false
      auto.deploy.interval=1000

      alternative:

      #Wed Jun 26 09:05:01 CEST 2013
      # DO NOT EDIT - your changes are overwritten on server start.
      # TO CUSTOMIZE these settings, write-protect this file
      json.service.auth.token.enabled=false
      ...

        Attachments

          Activity

            People

            Assignee:
            simon.jiang Simon Jiang
            Reporter:
            olaf.kock Olaf Kock
            Participants of an Issue:
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              5 years, 41 weeks ago

                Packages

                Version Package
                3.0 M2