mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-09-21 19:32:34 +03:00
Fix bad absolute paths
This commit is contained in:
parent
4b13d6f9a6
commit
c776b237b9
|
@ -1,5 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
WORK_DIR="$(dirname "$0")"
|
||||||
|
PROJECT_DIR="$(dirname "$WORK_DIR")"
|
||||||
|
|
||||||
pip --version >/dev/null 2>&1 || {
|
pip --version >/dev/null 2>&1 || {
|
||||||
echo >&2 -e "\npip is required but it's not installed."
|
echo >&2 -e "\npip is required but it's not installed."
|
||||||
echo >&2 -e "You can install it by running the following command:\n"
|
echo >&2 -e "You can install it by running the following command:\n"
|
||||||
|
@ -43,10 +46,10 @@ if [ -z "$VIRTUAL_ENV" ]; then
|
||||||
exit 1;
|
exit 1;
|
||||||
else
|
else
|
||||||
|
|
||||||
pip install -r requirements/local.txt
|
pip install -r $PROJECT_DIR/requirements/local.txt
|
||||||
pip install -r requirements/test.txt
|
pip install -r $PROJECT_DIR/requirements/test.txt
|
||||||
{% if cookiecutter.use_heroku == "y" -%}
|
{% if cookiecutter.use_heroku == "y" -%}
|
||||||
pip install -r requirements.txt
|
pip install -r $PROJECT_DIR/requirements.txt
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user