torrents.csv/scripts/webserver.sh

18 lines
358 B
Bash
Raw Permalink Normal View History

# Optionally use environment variables
# export TORRENTS_CSV_ENDPOINT=http://0.0.0.0:8080
# export TORRENTS_CSV_DB_FILE=`pwd`/../../torrents.db
# export TORRENTS_CSV_FRONT_END_DIR=`pwd`/../ui/dist
# Build the sqlite db from the CSV
2020-01-09 17:13:22 +00:00
./build_sqlite.sh -f
# Build front end
cd ../server/ui
2018-10-11 23:21:41 +00:00
yarn
yarn build
# Build back end
2018-10-11 21:59:30 +00:00
cd ../service
cargo run --release