flywheel-deploy-client
v0.0.1
Published
A client for deployling wordpress sites with FlyWheel. Useful in build tools and e.g. bitbucket pipelines.
Downloads
3
Readme
flywheel-deploy-client
A small client library for deploying a WordPress site to FlyWheel.
Usage
Be sure the following environment variables are set when using the client.
DEPLOY_SFTP_USERNAME
: FlyWheel SFTP usernameDEPLOY_SFTP_PASSWORD
: FlyWheel SFTP passwordDEPLOY_WP_ROOT_PATH
: FlyWheel SFTP remote directory (e.g./org-your-org/your-site_staging
)
Then in your build script...
const DeployClient = require('flywheel-deploy-client'),
client = new DeployClient('/path/to/loca/wordpress');
client.deploy();
Process
Currently, this client doesn't look at git or any other version control for your project. It simply recursively deletes the following remote directories:
wp-content/plugins
wp-content/mu-plugins
wp-content/themes
And then uploads the corresponding directories from your local project in their places.
Note: This client uses console.log( . . . )
to output it's progress.
TODO
- [ ] Use a config object passed to the constructor instead of env variables.
- [ ] Report progress, failures, and completion using
Promise
s orEventEmitter