mattjmorrison / capistrano-django Goto Github PK
View Code? Open in Web Editor NEWcapistrano-django provides a solid basis for common django deployment
capistrano-django provides a solid basis for common django deployment
Currently, this script builds a new virtualenv per deploy, which extends deploy times by quite a bit.
I've written some code to build the virtualenv once, in the shared directory, and then symlink it into the release directory. I'm submitting a pull request - AFAICT, it doesn't break anything, and is switchable via one config variable.
It's been a long time since i've used capistrano (and django) so coming back to this library exposed a lot of pieces of config that I completely forgot about.
I created a minimal deploy example app that has a few placeholders here.
Would you rather link externally or have me add it to the project and do a PR?
It would be great to utilize this for my Capistrano v3 deployments.
Currently. the virtualenv command that runs via python:create_virtualenv is just a flat virtualenv #{path}
; there are several options that might be useful/necessary to pass to it at creation time, e.g. python to use, system-site-package, etc.
Matt
Would you be willing to support a "breaking change" to the project? example -today this assumes you are using grunt for the npm deploy step but it would be nice to support grunt/gulp/broccoli/whatever is next and I'm thinking this line
https://github.com/mattjmorrison/capistrano-django/blob/master/lib/capistrano/django.rb#L141
We could swap out for a complete "npm task" in the config so I would supply this
set :npm_task, './node_modules/.bin/grunt deploy'
Instead of this (what I'm doing today)
set :grunt_task, 'deploy'
Any way you would be up for a change like this in the next release?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.