In my dev environment (ubuntu 16.04) I activated the venv for my first python project. Now every time I cd to its folder I can see, that it is activated.
foo@bar:~$ cd projects/my-project/
(my-project) foo@bar:~/projects/my-project$ cd ..
foo@bar:~/projects$
I deployed the project to a VPS (ubuntu 16.04), and now every time I connect to the server I have to re activate the venv, and the (venv) stays even I leave the folder.
ssh myvps
root@myvps:~#
root@myvps:~# cd my-project/
root@myvps:~/my-project# source venv/bin/activate
(venv) root@myvps:~/my-project# cd ..
(venv) root@myvps:~# cd ..
Now on the vps int he project's folder there is a folder venv, but in my dev environment there is none.
How can I have the same behavior on the vps, that I dont have to activate the venv every time I connect to the server?
I am using pyenv in both environment.