Metadata-Version: 1.2
Name: deployserver
Version: 0.1.6
Summary: Deploy your project automatically when git branch was updated.
Home-page: https://github.com/codex-team/deployserver
Author: CodeX Team
Author-email: team@ifmo.su
License: MIT
Description: deployserver
        ============
        
        Deploy your project automatically when git branch was updated.
        
        Usage
        -----
        Install deployserver from pip.
        
        .. code:: bash
        
            $ pip3 install deployserver
        
        
        To start your first autodeploy daemon you need to create `deploy.py` script file in your project.
        
        .. code:: python
        
            import deployserver
        
        
            deployserver.init({
                'server_address': 'http://mydomain.com',
                'port': 1234,
                'deploy': 'cd /var/www/myProject; git pull;'
            })
        
        Then you need to run this script.
        
        .. code:: bash
        
            $ python3 deploy.py
        
        If you want to run autodeploy daemon in background, use Screen.
        
        .. code:: bash
        
            $ screen -dmS deployserver_myProject python3 deploy.py
        
        Screen docs: https://www.gnu.org/software/screen/manual/screen.html
        
        Initial params
        --------------
        
        For initiation deployserver params dict is required.
        
        server\_address : string
        ~~~~~~~~~~~~~~~~~~~~~~~~
        
        Enter a domain name for this server with http protocol.
        
        .. code:: python
        
            'server_address': 'http://mydomain.com'
        
        .. code:: python
        
            'server_address': 'http://8.8.8.8'
        
        .. code:: python
        
            'server_address': 'http://0a1b2c3d.ngrok.io'
        
        port : integer
        ~~~~~~~~~~~~~~
        
        deployserver will listen this local port.
        
        .. code:: python
        
            'port': 2345
        
        deploy : string
        ~~~~~~~~~~~~~~~
        
        Bash commands sequence which should be initiated on branch update.
        
        .. code:: python
        
            'deploy': 'cd /var/www/myProject; git pull;'
        
        .. code:: python
        
            'deploy': '/var/www/myProject/deploy.sh'
        
        (optional) branch : string
        ~~~~~~~~~~~~~~~~~~~~~~~~~~
        
        Which branch push event should initiate deploy function.
        
        .. code:: python
        
            # default
            'branch': 'master'
        
        .. code:: python
        
            'branch': 'current-sprint'
        
        .. code:: python
        
            'branch': 'ver2'
        
        (optional) uri : string
        ~~~~~~~~~~~~~~~~~~~~~~~
        
        Callback uri.
        
        .. code:: python
        
            # default
            'uri': '/callback'
        
        .. code:: python
        
            'uri': '/'
        
        Requirements
        ------------
        - Python >= 3.5
        - aiohttp
        - asyncio
        
        Links
        -----
        
        Repository: https://github.com/codex-team/deployserver
        
        Report a bug: https://github.com/codex-team/deployserver/issues
        
        PyPI Package: https://pypi.python.org/pypi/deployserver
        
        CodeX Team: https://ifmo.su
        
Keywords: automatically deploy git project
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.5
Classifier: Environment :: Console
Requires-Python: >=3.5
