Difference between revisions of "User:Gerard Caulfield/Fast Moodle git setup"

Jump to: navigation, search
Line 2: Line 2:
  
 
First create all the necessary directories:
 
First create all the necessary directories:
<code>
+
<code bash>
 
# Data directories
 
# Data directories
mkdir ~/data/
+
mkdir -p ~/data/moodle/int/m/ ~/data/moodle/int/22/ ~/data/moodle/int/21/ ~/data/moodle/int/20/ ~/data/moodle/int/19/ \
~/data/moodle/
+
~/data/moodle/pro/m/ ~/data/moodle/pro/22/ ~/data/moodle/pro/21/ ~/data/moodle/pro/20/ ~/data/moodle/pro/19/
~/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/
 
  
 
# Code directories
 
# Code directories
mkdir ~/src/
+
mkdir ~/src/moodle/int/m/ ~/src/moodle/int/22/ ~/src/moodle/int/21/ ~/src/moodle/int/20/ ~/src/moodle/int/19/ \
~/src/moodle/
+
~/src/moodle/pro/m/ ~/src/moodle/pro/22/ ~/src/moodle/pro/21/ ~/src/moodle/pro/20/ ~/src/moodle/pro/19/
~/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/
 
  
 
# The seed directory
 
# The seed directory
Line 40: Line 16:
  
 
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)
 
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)
<code>sudo ln -s ~/src/moodle /var/www/moodle</code>
+
<code bash>
 +
sudo ln -s ~/src/moodle /var/www/moodle
 +
</code>
  
 
Create the .seed repository for all the other working directories:
 
Create the .seed repository for all the other working directories:
<code sh>
+
<code bash>
cd ~/src/.seed/  
+
cd ~/src/.seed/
 
 
 
</code>
 
</code>

Revision as of 06:07, 27 February 2012

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:

# Data directories
mkdir -p ~/data/moodle/int/m/ ~/data/moodle/int/22/ ~/data/moodle/int/21/ ~/data/moodle/int/20/ ~/data/moodle/int/19/ \
~/data/moodle/pro/m/ ~/data/moodle/pro/22/ ~/data/moodle/pro/21/ ~/data/moodle/pro/20/ ~/data/moodle/pro/19/
 
# Code directories
mkdir ~/src/moodle/int/m/ ~/src/moodle/int/22/ ~/src/moodle/int/21/ ~/src/moodle/int/20/ ~/src/moodle/int/19/ \
~/src/moodle/pro/m/ ~/src/moodle/pro/22/ ~/src/moodle/pro/21/ ~/src/moodle/pro/20/ ~/src/moodle/pro/19/
 
# The seed directory
mkdir ~/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

Create the .seed repository for all the other working directories:

cd ~/src/.seed/