Python deployment with virtualenv (on a no-internet-access server) -
my production server has no access internet, it's bit mess copying dependencies dev machine production/development server.
if i'd use virtualenv, i'd have dependencies in environment. doing i'd able deploy on machine, has python & virtualenv installed.
but i've seen rarely, , seems kind of dirty. wrong , practice, or there other ways solve nicely?
three options consider:
run own pypi mirror dependencies need. need build file layout , pull local server using
index-urlflag:$ pip install --index-url http://pypi.beastcraft.net/ numpybuild virtualenvs on same architecture , copy on needed.
this works, you're taking risk on true portability.
use terrarium build virtual environments bring on (basically option 2 easier bookkeeping/automation).
i've done of these , think hosting own pypi mirror best option. gives flexibility when you're making deployment or trying out new code.
Comments
Post a Comment