Thursday, September 22, 2016

Re: Package a virtualenv to deploy across multiple systems?

As long as you use similar hardware and the same OS version
everywhere, a zip should work. You might get some issue if each
machine have a different version of some lib on which python have
dependencies

2016-09-22 3:25 GMT+02:00 'Abraham Varricatt' via Django users
<django-users@googlegroups.com>:
> Hello,
>
> Do we have any standard/recommended way to distribute the python virtualenv
> used in a django application across multiple servers?
>
> I'm able to write a provisioning script to do the following on a server,
>
> (for brevity, this is just a high-overview)
> * Clone the master branch of my django project
> * Download, compile and alt-install python 3.5 from sources
> * Create a virtualenv folder and configure my environment according to the
> requirements.txt of my django project
> * setup httpd conf files, restart server .. etc
>
> The OS I'm primarily targeting is centos7. For that matter, I'm doing my
> compiling on a centos7 box as well.
>
> My concern is that it feels wasteful to repeat the above steps on every
> system if I'm trying to scale across multiple machines. Is it possible to
> just provision the virtualenv on a single system, zip the folder and
> copy-paste to whichever systems I want to deploy to? Are there any concerns
> I need to be aware of, if I'm going by this approach?
>
> Confused about django provisioning options,
> Abraham V.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscribe@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/31679960-a802-469c-aea9-6431ea765735%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--

Cordialement, Coues Ludovic
+336 148 743 42

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAEuG%2BTZB%3DyPi82EZVKci3FNiZLe3qfcZLQwy9JuaOGgEbA_xrQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment