Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 22 lines (16 sloc) 403 Bytes
#!/bin/sh
if ! which pipenv > /dev/null ; then
echo "Couldn't find pipenv"
exit 1
fi
echo "Configuring environment..."
if ! pipenv --venv ; then
# We don't have a VEnv yet, so let's make sure we create one with Python 3
pipenv --three install
else
pipenv install
fi
# Restart Passenger (at least per Dreamhost's config)
mkdir -p tmp
touch tmp/restart.txt
echo "Setup complete."