Jump to content


Photo

Deploy configuration/customization changes without reinstall

Deploy Customize reinstall

  • Please log in to reply
8 replies to this topic

#1 k1000o

k1000o

    Advanced Member

  • Members
  • PipPipPip
  • 112 posts
  • LocationMadrid

Posted 01 December 2011 - 09:21 PM

I've been doing some customizations to Zurmo like:
- Adding new modules and classes
- Adding fields to the created classes
- Modifying the menus

What is the best way to apply this changes without having to reinstall the application?

#2 Jason

Jason

    Administrator

  • Administrators
  • 825 posts
  • LocationChicago

Posted 02 December 2011 - 04:34 AM

I will formulate an answer to this over the weekend.

Jason Green
Zurmo Team
Need support? Upgrade now


#3 Jason

Jason

    Administrator

  • Administrators
  • 825 posts
  • LocationChicago

Posted 03 December 2011 - 11:08 PM

For the menus, you shouldn't need to reinstall the application unless for some reason your module metadata was customized prior to u making the menu changes. Even if this is the case, you can follow the example for zurmozoo in ZurmoZooInstallUtil by adding your custom menus in here.

Regarding adding things that change the database schema, you can set in debug.php for $forceNoFreeze = true during development so that your can develop and test things out.

Regarding the more permanent changes to the schema, we have the method RedBeanDatabaseBuilderUtil::autoBuildModels() that is used during the installation. In the next couple of days I will a command line utility that uses this method. Anytime you want to fix up the schema you can just run the command line utility. I will post on this thread when it is ready.

Jason Green
Zurmo Team
Need support? Upgrade now


#4 Jason

Jason

    Administrator

  • Administrators
  • 825 posts
  • LocationChicago

Posted 05 December 2011 - 02:54 AM

I created a UpdateSchemaCommand that can be run from the command line. I just checked in the code and need to see how the tests perform in our continuous build environment. You are welcome though to try this script out, just make sure you backup your database first.

Jason Green
Zurmo Team
Need support? Upgrade now


#5 Jason

Jason

    Administrator

  • Administrators
  • 825 posts
  • LocationChicago

Posted 05 December 2011 - 11:42 PM

I had to fix something, and now the tests pass in Linux. After tonight we will know about Windows. I did try to run the test locally in windows and it was fine.

Jason Green
Zurmo Team
Need support? Upgrade now


#6 sanbrar

sanbrar

    Advanced Member

  • Members
  • PipPipPip
  • 72 posts

Posted 15 February 2012 - 09:35 PM

Hi Jason,

I created a custom module and followed the instructions however menu still doesn't appear. Not sure how to make the changes in database without having to re install the app.

But in under the Admin > Design section the custom module does appear.

I was wondering where can I find the utility you mentioned above.

Thanks

#7 Jason

Jason

    Administrator

  • Administrators
  • 825 posts
  • LocationChicago

Posted 16 February 2012 - 03:20 PM

Did you add &resolveCustomData=1 to the URL? You need to do this once when you go to the app and are logged in to fire off any code you have in your CustomManagement override class in the method resolveIsCustomDataLoaded() if you share your repository i can take a look and make sure your code is correct to begin with.

Jason Green
Zurmo Team
Need support? Upgrade now


#8 sanbrar

sanbrar

    Advanced Member

  • Members
  • PipPipPip
  • 72 posts

Posted 16 February 2012 - 06:45 PM

Thanks that worked :)

#9 Jason

Jason

    Administrator

  • Administrators
  • 825 posts
  • LocationChicago

Posted 16 February 2012 - 07:00 PM

Ok good. Let us know if you need help on anything else!

Jason Green
Zurmo Team
Need support? Upgrade now






Also tagged with one or more of these keywords: Deploy, Customize, reinstall

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users