Skip to content

Wordpress deployment notes

Deploying the site

Backend Code - Wordpress Code

  1. Create tag of current site in master
    • git checkout master
    • git tag -a v1.0 -m "Initial version of site launched"
    • git push origin --tags
  2. Merge code to master.
    • git checkout master
    • git merge dev
    • git push origin
  3. Deploy backend code to server
    • ssh -i keyfile.pem {user}@{server}
    • Update server:
      • sudo apt-get update
      • sudo apt-get upgrade -y
    • Access the correct folder
      • /path/to/wordpress/folder
      • git pull origin master
    • Run composer update without dev.
      • composer update --no-dev -vvv - no dev packages and verbose.
  4. Login and activate plugins.
  5. Test API access.

Issues with deployment

/bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
/sbin/mkswap /var/swap.1
/sbin/swapon /var/swap.1

Adding API Theme

  • Adding a public theme to show when hitting the front page of our api.