CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Updating question: SVN version 2.2.9 to 3.0
Pages: [1]

Author Topic: Updating question: SVN version 2.2.9 to 3.0  (Read 1165 times)

kmitz

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 2
Updating question: SVN version 2.2.9 to 3.0
October 02, 2009, 06:33:34 am
Hey,

I installed via SVN using this wiki entry: http://wiki.civicrm.org/confluence/display/CRMDOC/Installing+CiviCRM+from+subversion+%28SVN%29+repository

I saw this post re: updating using SVN.  http://forum.civicrm.org/index.php/topic,9324.0.html  I'm assuming you run the upgrade script after updating the code via SVN.  Does running the upgrade script run GenCode.php?

I'm new to SVN...is it possible to update via SVN directly from version 2.2.9 to 3.0?

What would be the proper svn command syntax to update?  After that, I assume I'd just repeat the steps in the SVN installation instructions...

Thanks, kmitz

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Updating question: SVN version 2.2.9 to 3.0
October 02, 2009, 08:03:02 am

Any specific reason you are using svn to install/upgrade your sites? In  general this is not recommended unless you are really comfortable with svn, versioning and branching and willing to do a few things manually

A few steps to do:

1. switch your svn repository to the 3.0.0 tag

2. update the civicrm-version.txt file at CRM root

3. run GenCode.php

4. run the upgrade script

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

kmitz

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 2
Re: Updating question: SVN version 2.2.9 to 3.0
October 02, 2009, 10:16:11 am
I'm using drush with Drupal, and it seemed natural to extend that to Civi.  In theory, its supposed to save time.  But as I said, I'm new to the CVS/SVN method.  I'm having to run the SVN command manually from within the sites/all/modules/civicrm directory.  I need to learn more about all this, but I'm in a time crunch right now...

Thanks for the reply.

kmitz

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Updating question: SVN version 2.2.9 to 3.0
October 11, 2009, 11:18:00 pm
I wouldn't suggest to use svn on a production website.

Moreover, the svn doesn't change the database schema automatically, so you need to pay attention when you svn update and run the appropriate queries to update the database too.

What I do is to keep the branches on my dev machine from svn, and rsync -avzC them to the production server when I think they contain enough fixes and that I know what to change on the dbs.

ie. That's a great tool for the development website, not so much for the production one.
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

kmitz

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 2
Re: Updating question: SVN version 2.2.9 to 3.0
October 13, 2009, 08:13:14 pm
Thanks for the info.

Please forgive my ignorance, but what is the difference between just running SVN and rsync'ing the same thing?  I'm not checking out HEAD, but a stable release.  Provided GenCode.php runs successfully, and you run the upgrade script, the end result should be the same, correct?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Updating question: SVN version 2.2.9 to 3.0

This forum was archived on 2017-11-26.