Visual Arts Press Blog

The all knowing, ever present VAP knowledge base

Archive for the ‘Uncategorized’ Category

Updating WordPress as git submodule

without comments

ceblog.sva.edu has WordPress installed as a git submodule.

  1. Do this locally first(!) but if it’s working locally then
  2. SSH into the server (172.22.1.42)
  3. cd /var/www/html/ceblog.sva.edu/wordpress
  4. Note the current WP version:¬†git describe –tags
  5. Refresh tags: git fetch –tags
  6. git checkout 4.X
  7. Hopefully nothing broke…
When setting this up locally for the first time, after pulling down the repo:
  1. git submodule init
  2. git submodule update
  3. git submodule sync
  4. cd wordpress
  5. git checkout 4.X
Gotchas
  • Make sure you copy wp-config.php and .htaccess from a working server (production). ¬†These have been modified to support the submodule.

Written by ecorriel

February 18th, 2015 at 10:46 pm

Posted in Uncategorized