1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
theorangeone.net-legacy/scripts/build

38 lines
711 B
Text
Raw Normal View History

2016-11-22 21:50:21 +00:00
#!/bin/bash
if [ -z "$NVM_DIR" ]
then
NVM_DIR="$HOME/.nvm"
fi
. $NVM_DIR/nvm.sh
nvm install
nvm use
set -e
if hash pyenv 2>/dev/null;
then
echo "using pyenv wrapper"
pyenv install --skip-existing
pyenv exec pyvenv env
else
echo "using pyvenv (Built in python)"
pyvenv env
fi
export PATH=env/bin:${PATH}
pip install -r requirements.txt
npm install
2016-11-24 15:46:26 +00:00
mkdir -p static/build/js/lib static/build/fonts static/build/css static/build/img
cp -R node_modules/font-awesome/fonts static/build/
2016-11-24 23:36:29 +00:00
cp -R node_modules/bootstrap-sass/assets/fonts/* static/build/fonts
cp -R static/src/img static/build
2016-11-24 15:46:26 +00:00
2016-11-22 21:50:21 +00:00
npm run build
2016-11-24 15:46:26 +00:00
honcho --app-root environment --env env run env/bin/python3 manage.py collectstatic --noinput