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.
static-share/build

36 lines
624 B
Plaintext
Raw Permalink Normal View History

2016-09-05 08:36:06 +01: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
env/bin/pip install -r requirements.txt
npm install
npm run build
2016-09-06 20:53:03 +01:00
echo "Getting icons..."
git clone git@github.com:teambox/Free-file-icons static/build/img/temp || echo "already exists"
cp static/build/img/temp/512px/* static/build/img/icons/
rm -rf static/build/img/temp
2016-09-05 08:36:06 +01:00
env/bin/python manage.py collectstatic --noinput