-
Setup project repository using Bedrock
-
Add bedrock-capistrano to project
-
Configure
config/deploy/*.rbfiles and add the following to each.set :deploy_to, '/home/USERNAME/webapps/SITENAME' set :tmp_dir, '/home/USERNAME/tmp' -
Generate an SSH key for Webfaction server by logging into server and running
ssh-keygenin the$HOMEdirectory. -
Add generated SSH public key to repositories allowed deploy keys
-
Setup passwordless loging by adding your computer's SSH public key to Webfaction server.
- Login to server
- Create
~/.ssh/authorized_keysfile is doesn't exist (chmod 600 permissions) - Get your computer's SSH public key and add on a new line to
authorized_keysfile - Save
-
Setup Composer and WP-CLI on Webfaction account by running this setup script
-
Login to Webfaction control panel and create the following apps and website entries.
- PHP app named
APPNAME - Symbolic link app named
APPNAME_linkwith link to/home/USERNAME/webapps/APPNAME/current/web - Website linked to
APPNAME_LINKapp - Create a MySQL database
- PHP app named
-
Create directory named
sharedin/home/USERNAME/webapps/APPNAMEand populate with.env,web/.htacess, andweb/app/uploadsfiles/directories. -
Follow Bedrock readme for final deployment steps and details