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:

  1. run own pypi mirror dependencies need. need build file layout , pull local server using index-url flag:

    $ pip install --index-url http://pypi.beastcraft.net/ numpy

  2. build virtualenvs on same architecture , copy on needed.

    this works, you're taking risk on true portability.

  3. 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

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -