Results 1 to 5 of 5

Thread: Using _dev directory for develop Zimlets

  1. #1
    g41n's Avatar
    g41n is online now Intermediate Member
    Join Date
    Jun 2013
    Posts
    23
    Rep Power
    2

    Default Using _dev directory for develop Zimlets

    Hi,
    I'm trying to modify an Administrative Zimlet. Since now I've tried to modify files in /opt/zimbra/zimlets-deployed/com_zimbra_zimlet files and works (after a zmprov fc zimlet and other stuff...).
    Now I've read that is simpler to develop a zimlet in /opt/zimbra/zimlets-deployed/_dev directory, cause here you have not to deploy it or flush any cache.
    So I've undeployed my Zimlet and I've created the _dev dir in this manner
    Code:
    # mkdir /opt/zimbra/zimlets-deployed/_dev
    # unzip com_zimbra_zimlet.zip -d /opt/zimbra/zimlets-deployed/_dev/com_zimbra_zimlet
    # chown -R zimbra:zimbra /opt/zimbra/zimlets-deployed/_dev
    ... but I can't see my Zimlet.

    Tried with ?dev=1 too, but no success: my Zimlets JS files are not loaded by the browser.

    Am I missing something?

    Any help would be appreciated.

  2. #2
    roby.tea is offline Active Member
    Join Date
    Aug 2013
    Posts
    31
    Rep Power
    2

    Default

    same for me :-( I'm using ZCS 8 Open Source edition.

    does anyone can help?

    Thanks
    Roberto

  3. #3
    g41n's Avatar
    g41n is online now Intermediate Member
    Join Date
    Jun 2013
    Posts
    23
    Rep Power
    2

    Default

    Quote Originally Posted by roby.tea View Post
    same for me :-( I'm using ZCS 8 Open Source edition.

    does anyone can help?

    Thanks
    Roberto
    Hi Roberto,
    I've not solved anymore.

    I'm developing using myurl?dev=1 that loads all JS files separately and with no cache. I think it's the best way because you have all uncompressed Zimbra JS library in your browser and you can debug them too (that's basic in lack of documentation, imho). The only pain is when the developing server is not in your LAN and the refresh becomes quite slow, don't know if that's occur using _dev directory too...

    Well, let me know if you manage to make _dev directory work...

    Bye

  4. #4
    g41n's Avatar
    g41n is online now Intermediate Member
    Join Date
    Jun 2013
    Posts
    23
    Rep Power
    2

    Default

    I've managed to make it work in this way:
    * deploy the zimlet
    * as zimbra user, create the _dev directory
    Code:
    # su - zimbra
    $ mkdir zimlets-deployed/_dev
    * always as zimbra user, move the zimlet directory in the _dev folder
    Code:
    $ mv zimlets-deployed/com_zimbra_zimlet zimlets-deployed/_dev
    That works for me, and I have uncompressed zimlet files and compressed zimbra core files in my browser.
    Every page reload takes uncompressed zimlet files without caching them, so you can view your changes immediately with a normal page size.

    It's important to do that with zimbra user, because it sets right permissions on files. If you do that as root, it may not works.

    That's not works with jsp files, for which I have to do
    Code:
    $ zmcontrol restart
    every time I make a change. Let me no know if someone knows a simpler method to reload them.


    PS: move zimlet folder in the original position again, makes the zimlet disappear. Seems that lost the LDAP deploy. I've fixed undeploying and redeploying it again. Maybe coping the original in _dev folder instead of moving is enough and don't breaks the LDAP deploy, but I've to test it...
    YetOpen S.r.l. ~ Your open source partner
    Lecco (LC) - ITALY
    http://www.yetopen.it

  5. #5
    tdesorbaix is offline Zimlet Guru & Moderator
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    367
    Rep Power
    8

    Default

    "_dev" folder and adding "dev=1" in the url are differents things.
    To load each javascript file separately, you only need to use "dev=1" in your url.

    For the jsp, you can do a "zmmailboxdctl restart", to restart jetty, instead of restarting zimbra.
    But the best method is to modify jetty configuration to reload the jsp with an interval.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. _dev zimlets show to all users
    By undertoe in forum Zimlets
    Replies: 0
    Last Post: 09-01-2010, 07:04 AM
  2. [SOLVED] zimlet _dev in Zimbra 6
    By pbruna in forum Zimlets
    Replies: 5
    Last Post: 12-21-2009, 07:14 AM
  3. Replies: 0
    Last Post: 11-19-2009, 06:13 PM
  4. Develop Wiki
    By ajflorido in forum Developers
    Replies: 1
    Last Post: 05-10-2009, 11:58 PM
  5. Zimlets in _dev folder do no load
    By xaieta in forum Zimlets
    Replies: 2
    Last Post: 10-25-2007, 06:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •