Skip to content

Instantly share code, notes, and snippets.

@matjack1
Last active December 23, 2015 13:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matjack1/6d74c757a2e49739a06a to your computer and use it in GitHub Desktop.
Save matjack1/6d74c757a2e49739a06a to your computer and use it in GitHub Desktop.
Our standard WordPress workflow for starting and deploying a Wordless installation
# Toolbox
Every item of the toolbox must be installed before going on to the workflow section.
Every tool has his own install instruction in the Github page.
## weLaika Breedeer
https://github.com/welaika/breeder
## Wordless Gem
https://github.com/welaika/wordless_gem
## WP-CLI
http://wp-cli.org/
## Wordless
https://github.com/welaika/wordless
## Wordmove
https://github.com/welaika/wordmove
# Workflow
## Create vhost with WordPress and Wordless installed
breeder -s wp-site -d -w
Assuming you are using Apache as webserver and a normal user for editin files you'll
need to give permissions to www-data to write files (temp files) to make your life easier.
chown -R your_user:www-data wp-site.local
chmod -R g+w wp-site.local
Visit wp-site.local and finish the WordPress installation
Activate Wordless plugin and the newly created theme
wp plugin activate wordless
wp theme activate wp-site.local
Enable permalinks
wp rewrite structure /%postname%/
## Push the site to a remote server
wordmove init
Edit the Movefile with your local and remote parameters
For the first global push use the --all flag. Everything (database included) will be
deployed on the remote server
wordmove push --all
Then recreate the wp-config.php (only the first time) and you are ready to go
You'll miss the compiled CSS and JS, so you can automate the asset compile and deploy.
Create the Wordfile file and insert your preferred deploy command, mine is:
deploy_command: 'wordmove push -t'
Then push the theme with recompiled assets with this command:
wordless deploy -r
Now everything should be deployed correctly and ready to be deployed everytime you need!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment