Skip to content

Instantly share code, notes, and snippets.

@bostondv
Last active October 25, 2016 17:41
Show Gist options
  • Save bostondv/b32d07a22a3c2373509a7b4de2c98858 to your computer and use it in GitHub Desktop.
Save bostondv/b32d07a22a3c2373509a7b4de2c98858 to your computer and use it in GitHub Desktop.
WordPress Bedrock Setup for Webfaction
  1. Setup project repository using Bedrock

  2. Add bedrock-capistrano to project

  3. Configure config/deploy/*.rb files and add the following to each.

    set :deploy_to, '/home/USERNAME/webapps/SITENAME'
    set :tmp_dir, '/home/USERNAME/tmp'
    
  4. Generate an SSH key for Webfaction server by logging into server and running ssh-keygen in the $HOME directory.

  5. Add generated SSH public key to repositories allowed deploy keys

  6. Setup passwordless loging by adding your computer's SSH public key to Webfaction server.

  • Login to server
  • Create ~/.ssh/authorized_keys file is doesn't exist (chmod 600 permissions)
  • Get your computer's SSH public key and add on a new line to authorized_keys file
  • Save
  1. Setup Composer and WP-CLI on Webfaction account by running this setup script

  2. Login to Webfaction control panel and create the following apps and website entries.

    • PHP app named APPNAME
    • Symbolic link app named APPNAME_link with link to /home/USERNAME/webapps/APPNAME/current/web
    • Website linked to APPNAME_LINK app
    • Create a MySQL database
  3. Create directory named shared in /home/USERNAME/webapps/APPNAME and populate with .env, web/.htacess, and web/app/uploads files/directories.

  4. Follow Bedrock readme for final deployment steps and details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment