-
Notifications
You must be signed in to change notification settings - Fork 0
Production Deployment
axapu edited this page Apr 15, 2015
·
10 revisions
- Login as drupal user
> ssh drupal_librarystage
- In another terminal Login as systems users
> ssh systems@library-dev
- As Drupal user
> cd /var/www/apps/library-stage
- As Drupal user
> drush @stage cc all
- As systems stop apache server
> sudo /etc/init.d/httpd stop
- As Drupal user
> redis-cli flushall
- As Drupal user
> drush sql-sync --no-cache @libraryprod @stage
- As Drupal user
> drush rsync @libraryprod:%files/ @stage:%files
- As Drupal user in /var/www/apps/library-stage run
> git fetch
- As Drupal user in /var/www/apps/library-stage run
> git pull origin master
- As Drupal user run
> drush updatedb
- As Drupal user run
> drush @stage cc all
and flush all caches - As Drupal user
> redis-cli flushall
- As system user restart apache
> sudo /etc/init.d/httpd restart
- Make sure site turns over.
- As Drupal user run any module installations, feature-reverts needed by the update
- If things still are amiss manually flush cache in Drupal UI.
- Login as drupal user
> ssh libraryprod
- In another terminal Login as systems users
> ssh systems@library-prod
- As Drupal user
> cd /var/www/apps/library
- As Drupal user run
> drush @prod cc all
and flush all caches - As Drupal user
> redis-cli flushall
- As systems stop apache server
> sudo /etc/init.d/httpd stop
- As Drupal user in /var/www/apps/library-stage run
> git fetch
- As Drupal user in /var/www/apps/library-stage run
> git pull origin master
- As Drupal user run
> drush updatedb
- As system user restart apache
> sudo /etc/init.d/httpd restart
- Make sure site turns over.
- As Drupal user run any module installations, feature-reverts needed by the update
- If things still are amiss manually flush cache in Drupal UI.
If Varnish is not restart the cache will persist as it was and changes introduced by the update will gradually be applied as uncached pages are requested or cached pages expire. If an update is major enough restart varnish and flush the entire cache with the following command.
> sudo /etc/init.d/varnish restart