Drupal 6 Single site project setup
Create MySql database
TBD
Copy sites/default/default.settings.php to settings.php
Set up Drupal
Create sites/all/modules
Add modules with drush
cd sites/all/modules drush dl <module name> <module name> <module name> --package-handler=cvs
Create the repository and the initial directories.
svnadmin create /svn/<project name> svn mkdir -m "Initial project roots" file:///svn/<project name>/trunk file:///svn/<project name>/branches file:///svn/<project name>/tags
Make sure apache has access
chown -R www-data /svn/myproject
Import the files
Click here for a more detailed procedure
If you are on the same server where the repository is then
svn import htdocs file:///svn/<project name>/trunk -m"Initial import"
from another box
svn import htdocs svn+ssh://<user name>@myhost.com/svn/<project name>/trunk -m"Initial import"
Nuke the directory
rm -rf htdocs/
Check out
If you are on the same server where the repository is then
svn checkout file:///svn/<project name>/trunk
from another box
svn checkout svn+ssh://<user name>@myhost.com/svn/<project name>/trunk -- or -- svn checkout --username <user name> http://svn.mydomain.com/svn/<project name>/trunk
Rename
mv trunk htdocs
Go to admin/reports/status and check files permissions.
Add settings.php to ignore list to keep local configuration
Save settings.php
svn --force delete settings.php svn commit -m"removed settings "
Copy back settings.php
svn propedit svn:ignore ./<site directory>
This will bring up the editor. Add settings.php and save.
- Login to post comments