tags:

views:

95

answers:

2

How can I version a Joomla website.

When I do a hand made web application I put the code and database schema into SVN and add a script that updates a working copy, sets up a database and resets a server.

With Joomla I am lost :(

A: 

There is a versioning component: http://extensions.joomla.org/extensions/authoring/content-submission/6260/details This will only take care of the core content and will not hook into SVN though.

jlleblanc
+1  A: 

You can use the same approach with joomla too.

  1. First, install joomla where it is accessible via our web server

  2. take a dump of the mysql database and put it into some directory also inside the root folder where joomla was installed.

  3. create a script that imports your database dump into mysql.

  4. move the rootfolder away from where you installed it and import everything into your scm.

  5. checkout the joomla installation to exact place where it was installed into originally.

  6. run the script that you made in step 3 to import your database.

Now if you work on the site, you edit your stuff and commit, you can checkout the latest changes in the joomla folder. And if you mix branches as "release versions" of your site, things are abit easier. Also, you could make a shell script that does combine the checkout and mysql dump import..

rasjani