Updating Drupal
When updating a module,
- login to the website as root
- download the latest update
- in a terminal, go to a local copy of the repository
- go to ./branches/live/htdocs/sites/all/modules
- run the following:
svn rm modulename
- then run:
svn commit -m "updating modulename to v.Z"
- then copy from the directory in the archive:
cp -R modulename /path/to/repository/branches/live/htdocs/sites/all/modules/
- now go back to the repository branches/live/htdocs directory and add the files to the repository:
svn add modulename
- and commit everything:
svn commit -m "updating modulename to v.Z"
- just to check everything went smoothly, go the the root directory of the repository and run:
- svn update
- svn log | less
- and check the log.
- now ssh into avenger:
- ssh avenger
- cd /web/cis-dept
- sudo svn update
- svn log | less
- and check the log.
now go to https://www.cis.ksu.edu/update.php
- press continue
- then press update
- done
When updating the Drupal core,
- login to the website as root
- download the latest update
- in a terminal, go to a local copy of the repository
- go to ./branches/live/htdocs/
- check for differences between themes/bluemarine in the repository and the new archive. If necessary, make changes to sites/all/themes/cis.
- run the following:
- svn rm *.txt
- svn rm *.php
- svn rm .htaccess
- svn rm includes
- svn rm misc
- svn rm modules
- svn rm profiles
- svn rm scripts
- svn rm themes
- svn rm sites/all/README.txt
- check for differences between sites/default/default.settings.php in the repository and the new archive. If necessary, make changes to the sites/default/settings.php file.
- then run:
- svn rm sites/default/default.settings.php
- svn commit -m "updating to drupal x.y"
- then copy from the directory in the archive:
- cp *.txt /path/to/repository/branches/live/htdocs/
- cp *.php /path/to/repository/branches/live/htdocs/
- cp .htaccess /path/to/repository/branches/live/htdocs/
- cp -R includes /path/to/repository/branches/live/htdocs/
- cp -R misc /path/to/repository/branches/live/htdocs/
- cp -R modules /path/to/repository/branches/live/htdocs/
- cp -R profiles /path/to/repository/branches/live/htdocs/
- cp -R scripts /path/to/repository/branches/live/htdocs/
- cp -R themes /path/to/repository/branches/live/htdocs/
- cp sites/all/README.txt /path/to/repository/branches/live/htdocs/sites/all/
- cp sites/default/default.settings.php /path/to/repository/branches/live/htdocs/sites/default/
- open the .htaccess file and do the following:
- after the the block
# Various rewrite rules. <IfModule mod_rewrite.c> RewriteEngine on
- add
# Pass external site stuff without being rewritten RewriteRule ^/_external/? - [L]
- and uncomment the lines
# RewriteCond %{HTTP_HOST} ^example\.com$ [NC] # RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
- and edit to
RewriteCond %{HTTP_HOST} ^cis\.ksu\.edu$ [NC] RewriteRule ^(.*)$ http://www.cis.ksu.edu/$1 [L,R=301]
- after the the block
- now go back to the repository branches/live/htdocs directory and add the files to the repository:
- svn add *.txt
- svn add *.php
- svn add .htaccess
- svn add includes
- svn add misc
- svn add modules
- svn add profiles
- svn add scripts
- svn add themes
- svn add sites/all/README.txt
- svn add sites/default/default.settings.php
- and commit everything:
- svn commit -m "updating to drupal x.y"
- just to check everything went smoothly, go the the root directory of the repository and run:
- svn update
- svn log | less
- and check the log.
- now ssh into avenger:
- ssh avenger
- cd /web/cis-dept
- sudo svn update
- svn log | less
- and check the log.
now go to https://www.cis.ksu.edu/update.php
- press continue
- then press update
- done