Planned maintenance is scheduled for the week of June 15th - the exact date and time will be announced soon.
See More Details
Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: How to enable developer mode in Liferay 6.2 IDE "CE" edition
How do I enable developer mode in Liferay 6.2 IDE "CE" edition?
I was following the steps here
But either these instructions are only for the paid EE studio version or I'm not finding the runtime server settings screen. I've looked in my runtime environment properties as well as the server properties in Eclipse but I'm not seeing the referenced option to enable developer mode.
I'm not able to find the "standard vs Development option" when I use the server creation wizard, which I tried a second time in case I missed it, or the "server mode" in an y runtime properties or settings screens. Is this only for the studo edition? Do I have to modify a .properties file instead. Again I'm using Liferay 6.2 with the tomcat bundle in Eclipse.
I was following the steps here
But either these instructions are only for the paid EE studio version or I'm not finding the runtime server settings screen. I've looked in my runtime environment properties as well as the server properties in Eclipse but I'm not seeing the referenced option to enable developer mode.
I'm not able to find the "standard vs Development option" when I use the server creation wizard, which I tried a second time in case I missed it, or the "server mode" in an y runtime properties or settings screens. Is this only for the studo edition? Do I have to modify a .properties file instead. Again I'm using Liferay 6.2 with the tomcat bundle in Eclipse.
Using Developer Studio/IDE
For Liferay Portal servers of version 6.2 or greater, the Liferay settings section of the server runtime environment creation wizard lets you select either Standard or Development(portal-developer.properties) for the runtime’s Server Mode. The Standard server mode is selected by default. To enable Development Mode, select Development(portal-developer.properties) and save the runtime environment. The next time you start Liferay server that are based on this runtime environment, they start in Development Mode.
Hi Bryan, as it isn't very clear, that documentation gives you a clue: "portal-developer.properties".
Just search for this file in the source code for your Liferay version, and copy/paste those properties into your portal-ext.properties.
Just search for this file in the source code for your Liferay version, and copy/paste those properties into your portal-ext.properties.
Thank you,
This is the contents of portal-developer.properties:
This is the contents of portal-developer.properties:
theme.css.fast.load=false
theme.images.fast.load=false
javascript.fast.load=true
javascript.log.enabled=false
layout.template.cache.enabled=false
browser.launcher.url=
combo.check.timestamp=true
freemarker.engine.cache.storage=soft:1
freemarker.engine.resource.modification.check.interval=0
log.sanitizer.enabled=false
minifier.enabled=false
openoffice.cache.enabled=false
com.liferay.portal.servlet.filters.cache.CacheFilter=false
com.liferay.portal.servlet.filters.etag.ETagFilter=false
com.liferay.portal.servlet.filters.header.HeaderFilter=false
com.liferay.portal.servlet.filters.themepreview.ThemePreviewFilter=true
Bryan Wiggins:
How do I enable developer mode in Liferay 6.2 IDE "CE" edition?
I was following the steps here
But either these instructions are only for the paid EE studio version or I'm not finding the runtime server settings screen. I've looked in my runtime environment properties as well as the server properties in Eclipse but I'm not seeing the referenced option to enable developer mode.
I'm not able to find the "standard vs Development option" when I use the server creation wizard, which I tried a second time in case I missed it, or the "server mode" in an y runtime properties or settings screens. Is this only for the studo edition? Do I have to modify a .properties file instead. Again I'm using Liferay 6.2 with the tomcat bundle in Eclipse.Using Developer Studio/IDE
For Liferay Portal servers of version 6.2 or greater, the Liferay settings section of the server runtime environment creation wizard lets you select either Standard or Development(portal-developer.properties) for the runtime’s Server Mode. The Standard server mode is selected by default. To enable Development Mode, select Development(portal-developer.properties) and save the runtime environment. The next time you start Liferay server that are based on this runtime environment, they start in Development Mode.
Hey Bryan,
Sorry for the confusion. Prior to version 6.2, all liferay servers from Liferay IDE/DevStudio were automatically launched in developer mode (include-and-override=portal-developer.properties)
The reason in version 6.2 we changed things is because of the changes to the sass parsing in 6.2 always running the server in 'developer' mode was making many pages too slow to load. So we by default start the server in 'non developers' or 'standard' mode and the developers have to manually switch to developer mode if they need those features.
But for 6.1.x its always in developer mode.
Hope this helps!
Hi,
I had assumed from reading the Liferay Portal 6.2 Developer's Guide that there was a way to enable Development Mode from within the Liferay IDE. I believe that's the same thing Bryan is looking for, I have updated my version of Liferay IDE to the latest and I still cannot find this view.
I had assumed from reading the Liferay Portal 6.2 Developer's Guide that there was a way to enable Development Mode from within the Liferay IDE. I believe that's the same thing Bryan is looking for, I have updated my version of Liferay IDE to the latest and I still cannot find this view.
You should be able to see those settings by double-clicking the Liferay 6.2 server in the Servers view in eclipse, which will open a configuration editor that will give you those options.
Thanks @Gregory, problem solved.
You could maybe add this information to the "Developer's Guide" as others (like me) might wonder about how to do this .
Tamas Fabian:
You could maybe add this information to the "Developer's Guide" as others (like me) might wonder about how to do this .
Done! It's super-easy to add stuff like this - just go to the page on the Liferay Developer Network that discusses Developer Mode and click the "Edit on Github" button
Community
Company
Feedback