Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

User:Gerard Caulfield/Fast Moodle git setup

From MoodleDocs
< Gerard Caulfield
Revision as of 06:01, 27 February 2012 by Gerard Caulfield (talk | contribs) (Created page with "This setup allows you to have multiple working directories while having them all linked and using the same repository which I believe is perfect for Moodle development where you ...")
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This setup allows you to have multiple working directories while having them all linked and using the same repository which I believe is perfect for Moodle development where you sometimes want to view several versions of moodle at the same time but managing all those instances seperatly is an unnecessary hassle.

First create all the necessary directories:

  1. Data directories

~/data/ ~/data/moodle/ ~/data/moodle/int/ ~/data/moodle/int/m/ ~/data/moodle/int/22/ ~/data/moodle/int/21/ ~/data/moodle/int/20/ ~/data/moodle/int/19/ ~/data/moodle/pro/ ~/data/moodle/pro/m/ ~/data/moodle/pro/22/ ~/data/moodle/pro/21/ ~/data/moodle/pro/20/ ~/data/moodle/pro/19/

  1. Code directories

~/src/ ~/src/moodle/ ~/src/moodle/int/ ~/src/moodle/int/m/ ~/src/moodle/int/22/ ~/src/moodle/int/21/ ~/src/moodle/int/20/ ~/src/moodle/int/19/ ~/src/moodle/pro/ ~/src/moodle/pro/m/ ~/src/moodle/pro/22/ ~/src/moodle/pro/21/ ~/src/moodle/pro/20/ ~/src/moodle/pro/19/

  1. The seed directory

~/src/moodle/.seed/

Create a symbolic link in your web root so you can access all of these directories via http://localhost/moodle/ (or whatever location you prefer) sudo ln -s ~/src/moodle /var/www/moodle