Why doesn't Fabric see my .bash_profile?

后端 未结 3 964
离开以前
离开以前 2021-01-04 06:12

In Fabric, when I try to use any alias\' or functions from my .bash_profile file, they are not recognized. For instance my .bash_profile contains <

3条回答
  •  隐瞒了意图╮
    2021-01-04 06:37

    It looks like you're trying to use virtualenvwrapper locally. You'll need to make your local command string look like this:

        local("/bin/bash -l -c 'workon django-canada && python manage.py runserver'")
    

    Here's an example by yours truly that does that for you in a context manager.

提交回复
热议问题