osdir.com

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

My environment doesn't load


On Wed, Oct 10, 2018 at 2:32 AM <ftg at lutix.org> wrote:
>
> I rsynced the full local project directory (which contains the virtualenv dir) to a remote server.
> And there I couldn't enter into it.
> However, obviously apache2 achieved to...

Not so obvious. It's possible Apache is ignoring the venv and just
running the app in its own environment.

As others have said, you should maintain a requirements.txt and then
create a virtual environment on the target system. Since you're on a
recent Python, ignore the old "virtualenv" package, and use "venv"
from the stdlib.

ChrisA