flipit icon indicating copy to clipboard operation
flipit copied to clipboard

Zero Downtime Deployment Script

FlipIt

A simple script to SSH into your server and swap out your website with a fresh git repo version with zero downtime.

Why? See my post: Writing a Zero Downtime Deployment Script.

Installation

Git clone the repository onto your local machine and you can run the script from there.

git clone https://github.com/timacdonald/flipit.git

Versioning

This package uses Semantic Versioning. You can find out more about what this is and why it matters by reading the spec or for something more readable, check out this post.

Usage

# run the script (replace the arguments)
./flipit.sh -c SSH_CONNECTION_DETAILS -s SERVER_PUBLIC_FOLDER -r REPOSITORY_URL -g REPOSITORY_PUBLIC_FOLDER

Contributing

Please feel free to suggest new ideas or send through pull requests to make this better. If you'd like to discuss the project, feel free to reach out on Twitter.

License

This package is under the MIT License. See LICENSE file for details.