-
Notifications
You must be signed in to change notification settings - Fork 0
Production Deployment
axapu edited this page Oct 10, 2014
·
10 revisions
- Login as drupal user
> ssh 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 sql-sync --no-cache @libraryprod @stage
- 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 Drupal user run
> drush @stage cc
and flush all caches - 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 libraryprode
- Login as drupal user
-
-
-
- In another terminal Login as systems users
> ssh systems@library-prod
- In another terminal Login as systems users
-
-
-
- As Drupal user
> cd /var/www/apps/library
- As Drupal user
-
-
-
- As systems stop apache server
> sudo /etc/init.d/httpd stop
- As systems stop apache server
-
-
-
- As Drupal user in /var/www/apps/library-stage run
> git fetch
- As Drupal user in /var/www/apps/library-stage run
-
-
-
- As Drupal user in /var/www/apps/library-stage run
> git pull origin master
- As Drupal user in /var/www/apps/library-stage run
-
-
-
- As Drupal user run
> drush updatedb
- As Drupal user run
-
-
-
- As Drupal user run
> drush @stage cc
and flush all caches
- As Drupal user run
-
-
-
- As system user restart apache
> sudo /etc/init.d/httpd restart
- As system user restart apache
-
-
-
- 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