[](http://badge.fury.io/py/fabrik)

# Fabrik
A deployment toolkit built on top of Fabric.
The purpose of this library is to provide a stable python based deploy tool that covers a wide range a use cases,
Those cases include Wordpress, Node.js and Django. We favor composition and customization by code before configuration.
## Supports
- Git
- Rollbacks
- A full Django deploy script with migrations
- ClI for scaffolding
- Virtualenv creation and activation
- NPM management
- Nginx
- Uwsgi
- Forever
- Envfile handling
- Celeryd
- Wordpress with bedrock
- Composer
- Scp
## Requirements
To install Fabrik you need Python 2.7, virtualenv and pip.
## Installation
Fabrik can be installed through pip.
### Stable
`pip install fabrik`
### "Unstable"
- `pip install git+git://github.com/Frojd/Fabrik.git@develop`
### For development
- `git clone git@github.com:Frojd/Fabrik.git`
- `virtualenv venv`
- `source venv/bin/activate`
- `pip install --editable .`
## Quickstart
To create setup deployment for django, run the following:
`fabrik_start --stages=stage,prod --recipe=django`
This command will create the following files.
```
/fabfile.py
/stages/
__init__.py
stage.py
prod.py
```
This script will create the necessary files and add git repro setting (if present) and recipe import. Once generated, you'll need to add SSH settings and recipe unique settings by editing the files.
## Quickstart
To create setup deployment for django, run the following:
`fabrik_start --stages=stage,prod --recipe=django`
This command will create the following files.
```
/fabfile.py
/stages/
__init__.py
stage.py
prod.py
```
This script will create the necessary files and add git repro setting (if present) and recipe import. Once generated, you'll need to add SSH settings and recipe unique settings by editing the files.
## Examples
This project ships with examples for Django and Wordpress (just check `examples/*`)
## Tests
Tests can be run with `python runtests.py`, this will run the entire suite. Just make sure you run `pip install -r requirements/tests.txt` first.
It also possible to run a specific case: `python runtests.py tests.test_api.TestApi`
... or a specific unittest:
`test_deploy_rollback python runtests.py tests.test_api.TestApi.test_deploy_rollback`
### Writing tests
All tests should reside in the `tests` directory and prefixed `test_*`, to include a test in the main suite add the test path in `runtests.py`.
## Documentation
The documentation can be found [here](documentation/README.md).
## Contributing
Want to contribute? Awesome. Just send a pull request.
## License
Fabrik is released under the [MIT License](http://www.opensource.org/licenses/MIT).
Metadata
Release files for fabrik 3.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| fabrik-3.3.0.tar.gz | 14.3 kB | Without provenance | Details |
Release files / fabrik-3.3.0.tar.gz
| Download URL | fabrik-3.3.0.tar.gz |
|---|---|
| Size | 14.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e693da5d624f08c60a9559ccc4081ada6a9a8a01f30d73521109b83b57108626
|
|
BLAKE2b-256 checksum How to use checksums |
533503a581a44b44df86aacbf4bfc955731dd0fe4e4a9b2154003f676aa808af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for fabrik 3.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.