Difference between revisions of "Drupal"
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
<source lang="bash"> | <source lang="bash"> | ||
cd /var/www/equality-tech.com/www/drupal | cd /var/www/equality-tech.com/www/drupal | ||
− | |||
drush vset maintenance_mode 1 | drush vset maintenance_mode 1 | ||
− | |||
~/bin/backup.db.sh civicrm | ~/bin/backup.db.sh civicrm | ||
− | |||
~/bin/backup.db.sh drupal | ~/bin/backup.db.sh drupal | ||
− | |||
cp .htaccess .htaccess.mine | cp .htaccess .htaccess.mine | ||
− | |||
drush up | drush up | ||
− | |||
mv .htaccess.mine .htaccess | mv .htaccess.mine .htaccess | ||
drush vset maintenance_mode 0 | drush vset maintenance_mode 0 | ||
− | |||
</source> | </source> | ||
[[Category:CMS]] | [[Category:CMS]] | ||
[[Category:Drupal]] | [[Category:Drupal]] |
Revision as of 09:00, 18 June 2015
See the Drupal/Cheatsheet
See also Using git with drupal
Upgrade[edit | edit source]
You need to upgrade Drupal like you brush your teeth... at least once or twice a day.
cd /var/www/equality-tech.com/www/drupal
drush vset maintenance_mode 1
~/bin/backup.db.sh civicrm
~/bin/backup.db.sh drupal
cp .htaccess .htaccess.mine
drush up
mv .htaccess.mine .htaccess
drush vset maintenance_mode 0