Skip to main content

Git-play is a custom git command for deploying an application server very easily from a remote git repository. It checks the remote git repository every minute and if something has changed, it will restart the application server automatically.

Project description

Git-play is a custom git command for deploying an application server very easily from a remote git repository. It checks the remote git repository every minute and if something has changed, it will restart the application server automatically.

Installation

You can simply install git-play from PyPI by using pip or easy_install:

$ pip install git-play

Getting started

Git-play is made for people who hate complicated configurations, thus basically it doesn’t require you to do much except for .git-play.yml.

Configuring your git-play deployment with .git-play.yml

Git-play uses the .git-play.yml file in the root of your repository to configure how you want your application to be executed. .git-play.yml file has three parts: app, setup, teardown.

For your convenience, there are several examples of .git-play.yml file.

Django

app:
  workdir: ./mysite
  respawn: yes
  exec: python manage.py runserver

setup:
  - pip install -r requirements.txt
  - cd mysite
  - python manage.py syncdb

teardown:
  - echo "The server is going down for maintanance..."

Express

app:
  respawn: yes
  env:
   PORT: 80
  exec: node app.js

setup:
  - npm install

teardown:
  - echo "The server is going down for maintanance..."

Spray and pray!

Lastly, all you have to do is simply type the following in your terminal:

$ git play http://github.com/foo/bar --remote origin --branch master
Spawned!

For an existing repository, type the following:

$ git play bar -r origin -b master
Spawned!
$ ls -F
bar/
$ cd bar
$ git play
Spawned!

Contributing

Just fork and request pulls. Any help or feedback is appreciated.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

git-play-0.13.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file git-play-0.13.tar.gz.

File metadata

  • Download URL: git-play-0.13.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for git-play-0.13.tar.gz
Algorithm Hash digest
SHA256 9cc31e43201b18828bae36d7b899550206e4616f4820e7c28ad206352d54cfcf
MD5 fdd055d5805b5c23b8ab7f47218f14ca
BLAKE2b-256 2762a72b03805b0809e41bbfea4085824aa2d604bb2ee9a1253b30857cfd805f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page