https://github.com/stewartpark/git-play
Git-play is a custom git command for deploying an application server very easily from a remote git repository.
https://github.com/stewartpark/git-play
Last synced: 2 months ago
JSON representation
Git-play is a custom git command for deploying an application server very easily from a remote git repository.
- Host: GitHub
- URL: https://github.com/stewartpark/git-play
- Owner: stewartpark
- License: mit
- Created: 2013-04-03T13:39:53.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2023-04-15T11:54:06.000Z (about 2 years ago)
- Last Synced: 2025-03-24T22:29:40.369Z (3 months ago)
- Language: Python
- Homepage: https://pypi.python.org/pypi/git-play
- Size: 21.5 KB
- Stars: 61
- Watchers: 5
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
Git-play
========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``:
.. code-block:: console
$ 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
------.. code-block:: yaml
app:
workdir: ./mysite
respawn: yes
exec: python manage.py runserversetup:
- pip install -r requirements.txt
- cd mysite
- python manage.py syncdbteardown:
- echo "The server is going down for maintanance..."Express
-------.. code-block:: yaml
app:
respawn: yes
env:
PORT: 80
exec: node app.jssetup:
- npm installteardown:
- 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:
.. code-block:: console
$ git play http://github.com/foo/bar --remote origin --branch master
Spawned!For an existing repository, type the following:
.. code-block:: console
$ git play bar -r origin -b master
Spawned!.. code-block:: console
$ ls -F
bar/
$ cd bar
$ git play
Spawned!Contributing
------------
Just fork and request pulls. Any help or feedback is appreciated.