Skip to content
This repository has been archived by the owner on Jun 1, 2021. It is now read-only.

Latest commit

 

History

History
56 lines (25 loc) · 1.42 KB

README.md

File metadata and controls

56 lines (25 loc) · 1.42 KB

fabric-git-betwixt: Selective fabric deployment of a compiled project using a git repository betwixt and between your source code and target machine.

This folder shows an example setup. You could copy the contents to a deployment/ folder in your own project and modify it there.

Usage

  1. Edit the variables in fabfile.py.
  2. Edit what folders/files you would like to deploy in copy-files-to-target.sh.
  3. Run ./install.sh.
  4. Run ./wrapper.sh -l to see available fabric tasks.
  5. Run ./wrapper.sh localhost deploy to test your deployment scripts.
  6. Use production when you are confident everything works.

Files

.gitignore

Ignore betwixt deployment specific subfolders.

copy-files-to-target.sh

Example file to copy files to the target output directory. Copy only file you want to deploy. Requires editing.

fabfile.py

Defines fabric @tasks for localhost and production. Has most of the setup. Requires editing.

install.sh

Installs virtualenv, a virtual python environment for deployment and adds betwixt with dependencies.

README.md

See README.md.

requirements.txt

Lists required python packages for pip.

wrapper.sh

A wrapper that makes sure the right virtual environment is used.