The scripts we use assume a directory layout like this
\[domain name\] |
\[ Drupal site is here \] |
files \[for Drupal 6 and 'public files' for Drupal 7 \] |
\[domain name\] |
\[domain name\].make |
drupal_files \[private files for Drupal 7 \] |
and assume there is a [drush alias|http://eporama.com/ramblings/drush-aliases] set up for the site called @\[domain name\] . |
* it does not work with a domain name here!
How to change the modules and themes
find your make file under cul-drupal/\[drupal_6 or drupal_7\]/make/\[your site name\]/\[your site name\].make |
How to rebuild your site
go to victoria02 and cd /libweb/sites/\[your site name\]/make |
sudo dr-make.sh @\[your site name\] |
|
How to update your theme/module code on the site
go to victoria02 and cd /libweb/sites/\[your site name\]/htdocs/sites/all/\[modules or themes\]/\[your code's name\] |
How to work with your custom themes/modules
How to move from production to test
|
There is a script for this on victoria02: /usr/local/bin/update_test_from_production.sh There is also one for moving from victoria03: /usr/local/bin/update_test_from_victoria03.sh ************************************** Usage: sudo /usr/local/bin/update_test_from_production.sh <production domain> <test domain> ************************************** |
go to victoria02 and cd /libweb/sites/\[your site name\]/make |
sudo update_test_from_production.sh \[your production site domain\] \[your test site domain\] |
How to move from test to production
|
There is a script for this on victoria01: /usr/local/bin/update_production_from_test.sh There is also one on victoria03 to update production there: /usr/local/bin/update_victoria03_from_test.sh ************************************** Usage: sudo /usr/local/bin/update_production_from_test.sh <test domain> <production domain> ************************************** |
go to victoria01 and cd /libweb/sites/\[your site name\]/make |
sudo update_production_from_test.sh \[your test domain\] \[your production domain\] |