-
Setup project repository using Bedrock
-
Add bedrock-capistrano to project
-
Configure
config/deploy/*.rb
files 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-keygen
in the$HOME
directory. -
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_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
-
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_link
with link to/home/USERNAME/webapps/APPNAME/current/web
- Website linked to
APPNAME_LINK
app - Create a MySQL database
- PHP app named
-
Create directory named
shared
in/home/USERNAME/webapps/APPNAME
and populate with.env
,web/.htacess
, andweb/app/uploads
files/directories. -
Follow Bedrock readme for final deployment steps and details