pig.py/bootstrap-neopig.sh

17 lines
463 B
Bash

#!/bin/bash
set -e
# Clone neopig from git
git clone https://git.unturf.com/engineering/unturf/pig.py.git neopig
cd neopig
# Create virtualenv and install dependencies
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
# Create data directory for database
mkdir -p data
# Run neopig.py --serve on port 80 with sandbox mode (tar.gz uploads)
NEOPIG_SANDBOX=1 NEOPIG_DISABLE_CRAWL=1 python neopig.py --serve --host 0.0.0.0 --port 80