A shell utility to ease Wordpress website development workflow.
- Install wp-cli.phar somewhere
- git clone
https://github.com/marcw/wp.sh
~/wp.sh - chmod +x ~/wp.sh/wp.sh
- ln -s ~/wp.sh/wp.sh /usr/local/bin/wp.sh
At the root of your wordpress project, create a wp.sh.config file using this template
#!/bin/bash
host="my.hostname.com"
project_path="/path/to/project-files/on/the/server"
user="your-ssh-user"
local_hostname="//marc.weistroff.com.dev:8080"
remote_hostname="//marc.weistroff.net"
remote_wpcli="/remote/path/to/wp-cli.phar"
wp.sh deploy [--force]
wp.sh fetch [--force]
wp.sh sync_from_local [--force]
wp.sh export_db
wp.sh deploy_db
wp.sh fetch_db
Yes, please!
MIT. See LICENSE
file.