Giter Site home page Giter Site logo

pydmin's Introduction

Pydmin

Pydmin is an collection of fabric commands for configuring a remote ubuntu server with everything necessary to power a nginx+gunicorn django server.

Installation

pydmin depends on fabric and jinja2, so first you need to install them.

> pip install fabric jinja2

Then, clone this repository and open it in terminal.

Components

The pydmin folder consists of 2 python files and a folder with templates. The python files are fabfile.py and fabcontext.py

fabcontext.py is where the module's commands pull system and project configuration parameters from. Therefore, we need to edit this file and put our own system and project data.

fabfile.py is the default fabric file, which is searched for commands when we execute > fab, thus it has all of the modules usable commands. Ideally you should not need to edit this file.

templates/ is where the fab commands will pull all the unix and python config files from. These files will be put into the server for executing taks such as launching and configuring gunicorn, nginx and upstart.

Commands

The commands belong to 3 groups system, project and deploy.

System commands install nginx, python etc... and configures global stuff like /etc/nginx/nginx.conf

Project commands clones the repository, creates nginx and upstart entries, put launch scripts...

Deploy commands pull changes, update env files and restart services

Usage

$ cd /path/to/pydmin
$ fab 
> Lists all the available commands
$ fab command

pydmin's People

Contributors

xvaldetaro avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.