24 lines
369 B
Bash
Executable File
24 lines
369 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
cd "$(dirname $(dirname "$0"))" || exit
|
|
|
|
# env
|
|
if [[ ! -f .env ]]; then
|
|
cp .env-base .env
|
|
fi
|
|
source .env
|
|
|
|
# python
|
|
poetry env use ${PYTHON_VERSION}
|
|
poetry install
|
|
.venv/bin/playwright install chromium --with-deps --only-shell
|
|
|
|
# static
|
|
cd static || exit
|
|
|
|
if [[ -f $HOME/.nvm/nvm.sh ]]; then
|
|
source "$HOME/.nvm/nvm.sh"
|
|
nvm use
|
|
fi
|
|
npm ci
|