A
A
Alexander2018-02-20 17:13:54
Django
Alexander, 2018-02-20 17:13:54

How to correctly run a bash command on a file (workon: not found)?

#!/bin/bash
git --work-tree=/my_path/src --git-dir=/var/repo/my_project_name.git checkout -f
......
workon my_project_name

I run deploy, error: remote: hooks/post-receive: 5: hooks/post-receive: workon: not found

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Tallmange, 2018-02-20
@p00h

workon is a command to "enter" some virtualenv. You are missing something: either virtualenv or virtualenvwrapper.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question