atst/script/bootstrap
2018-06-29 16:17:00 -04:00

22 lines
496 B
Bash
Executable File

#!/bin/bash
# script/bootstrap: Resolve all dependencies that the application requires to
# run.
# If a command fails, exit the script
set -e
# Ensure we are in the app root directory (not the /script directory)
cd "$(dirname "${0}")/.."
# Install Python dependencies
pipenv --python 3.6
pipenv run pip install --upgrade pip
pipenv install --dev
# Install uswds node module and dependencies
npm install
# Precompile assets for deployment
pipenv run python ./precompile.py