Activate venv in {run,init}_sqlite
This commit is contained in:
@@ -13,7 +13,6 @@ First clone or [download the latest release](https://github.com/Demindiro/agrepe
|
|||||||
Then setup with:
|
Then setup with:
|
||||||
|
|
||||||
```
|
```
|
||||||
make
|
|
||||||
./init_sqlite.sh forum.db
|
./init_sqlite.sh forum.db
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,9 @@ PYTHON=python3
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
make
|
||||||
|
. ./venv/bin/activate
|
||||||
|
|
||||||
if [ $# -le 0 ]
|
if [ $# -le 0 ]
|
||||||
then
|
then
|
||||||
echo "Usage: $0 <file> [--no-admin]" >&2
|
echo "Usage: $0 <file> [--no-admin]" >&2
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
. ./venv/bin/activate
|
||||||
|
|
||||||
export DB="$1"
|
export DB="$1"
|
||||||
export SERVER=gunicorn
|
export SERVER=gunicorn
|
||||||
export PID="$2"
|
export PID="$2"
|
||||||
|
|||||||
Reference in New Issue
Block a user