Skip to content
This repository has been archived by the owner on Jul 3, 2022. It is now read-only.

timacdonald/flipit

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

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.