I’m still trying to find the right workflow for deploying changes to WordPress themes and plugins. So far FTP has been the go-to solution, but manually uploading files sucks.
My latest experiment has been Dandelion, a Ruby gem that can upload to FTP, SFTP, and even Amazon S3, but does the file uploading for you. It even manages file revisions and only uploads the files that have changed since you last pushed. You can check out the documentation here: https://github.com/scttnlsn/dandelion
Once you install the gem, just create a
dandelion.yml file in the root of your directory and add the details about your server. Then add
dandelion.yml to your
.gitignore file to make sure this info doesn’t get committed and pushed anywhere.
Then you have a few commands to play with. Try
dandelion status to check the current status of the code on your server, and then run
dandelion deploy to actually upload your changes.
So far this is much better than manually uploading files. If you use something better, let me know in the comments.