# Deployment Guide

# Checklist

  1. Match designs with the HTML look.
  2. Make sure all default generic texts are substituted/removed.
  3. Set appropriate <title>.
  4. Create favicons.
  5. Set appropriate values for theme-color and application-name meta tags.
  6. Set appropriate color in config.xml.
  7. Check responsiveness.
  8. Check for console errors.

# WordPress

# Before deployment

  1. Check all default templates
  • Blog
  • Single Article
  • Search
  • Archives
  • 404
  • Page
  1. Check if all HTML elements are styled on wherever a rich text editor is used. Use this gist: https://gist.github.com/alpanayotovv/fa40bf58e45278ac4629ba5d1f785ecc
  2. Check on all relevant browsers -- Chrome, Firefox, Safari, Opera ( maaaybe IE/Edge)
  3. Remove temp images and not needed assets
  4. Add Theme Screenshot (1200x900)
  5. Optimize images with optisize -- theme and uploads
  6. Build the project -- yarn build

# Deployment Guide

  1. Create a DB on the server
  2. Create a DB user on the server and save the password
  3. Associate DB user with the DB
  4. Migrate the local DB
  5. Import the DB on the server

Tip: phpMyAdmin does not play well with the migrator in some cases. Use mysql CLI or adminer to go around this.

# After deployment

  1. Make sure nothing is broken after the migration
  2. Update the admin access with strong password
  3. Update the .htaccess file with these -- https://gist.github.com/alpanayotovv/d75c71c806fd12fd9b0155fdb88f7cdb
  4. Run Google page speed insights

DO EVERYTHING AGAIN ON EVERY CHANGE, SINCE WE DON'T HAVE TESTS 😦 TODO: write tests