Skip to content

bgiesbrecht/django-spanner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deploy Django Project with Fabric

Documentation Status Downloads Latest Release https://travis-ci.org/MicroPyramid/django-spanner.svg?branch=master https://coveralls.io/repos/github/MicroPyramid/django-spanner/badge.svg?branch=master

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 django_spanner.
  • Finally, call setup() function with your configuration yaml file path.

Here is an example fabfile -

# fabfile.py
from django_spanner.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

About

deploy django project with fabric

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%