Skip to main content

quick solution to perform deploy a Django app using nginx and gunicorn

Project description

# Fabric Recipes

a quick solution to perform deploy a Django app using nginx and gunicorn

## How to Use:

install the app in your enviroment:

```bash
$ pip install git+https://github.com/petry/fabric-recipes.git
```

create a git repository to your project with `manage.py` and `requirements.txt` on root folder download our `fabfile.py`:

```bash
$ wget https://raw.github.com/petry/fabric-recipes-example/master/fabfile.py
```

If you like, change some fabric variables such as `env.user` and `env.password` on `fabfile.py`

then, run the commands to deploy your app on your server:

```bash
$ fab deploy
```

and this command to check if everything is working

```bash
$ fab status
```

or

fork [these example project](https://github.com/petry/fabric-recipes-example) with this structure :)

https://github.com/petry/fabric-recipes-example

***


**NOTE**
```
I tested this script using a virtual machine with ubuntu 10.04, feel free to create a version
for your distribution of choice :)
```

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

fabric-recipes-0.3.1.tar.gz (5.5 kB view details)

Uploaded Source

File details

Details for the file fabric-recipes-0.3.1.tar.gz.

File metadata

File hashes

Hashes for fabric-recipes-0.3.1.tar.gz
Algorithm Hash digest
SHA256 afbc875435a096ad6e5a4ffd423a284865ecda398e56ba4e113538c03e0fdf9c
MD5 f5690dd66f04e534789c1ccad95c799b
BLAKE2b-256 8dcb651b1f8a98ddc141792a29ccc33b2eeeecad5563e4160ef35a5c949e18b1

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