Skip to main content

A Django deployment package for all hosting types.

Project description

Documentation Status Downloads Latest Release https://travis-ci.org/MicroPyramid/deploy-python.svg?branch=master https://coveralls.io/repos/github/MicroPyramid/deploy-python/badge.svg?branch=master https://img.shields.io/github/license/micropyramid/deploy-python.svg

Setup:

  • First, create an YAML file similar to sample_config.yaml and fill the configuration details.

  • Next, create a fabfile.py in your project directory and import all functions(fab commands/tasks) from deploy_python.

  • Finally, call setup() function with your configuration yaml file path.

Here is an example fabfile -

# fabfile.py
from deploy_python.commands import *
setup("fabconfig.yaml")

Usage:

  • To list all the fab commands:

fab -l
  • To install the requirements on your local system, you can run the command as follows

fab run_local activate_env_install_requirements
                (or)
fab activate_env_install_requirements
  • To run a command on staging/live host,

fab [run_local/run_stage/run_live] <command_name>

NOTE:

By default, all the functions will run on the local system.

Visit our Django web development page Here

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

deploy-python-1.0.tar.gz (6.7 kB view details)

Uploaded Source

File details

Details for the file deploy-python-1.0.tar.gz.

File metadata

  • Download URL: deploy-python-1.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/2.7

File hashes

Hashes for deploy-python-1.0.tar.gz
Algorithm Hash digest
SHA256 5a15e0b44ec336b2778b2719e9c8783d33ec00467b479932b7c0494af0962aa6
MD5 fd4a2728145e40b58e48634f36fd5aef
BLAKE2b-256 4c17eb49c1514562863c0f2c177eade1ebafcb597718d3a99cd3b12c5722fcb9

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