2018-12-01 22:15:54 -07:00
|
|
|
# Optionally use environment variables
|
|
|
|
|
|
|
|
# export TORRENTS_CSV_ENDPOINT=http://0.0.0.0:8080
|
2018-12-02 12:08:32 -07:00
|
|
|
# export TORRENTS_CSV_DB_FILE=`pwd`/../../torrents.db
|
2018-12-01 22:15:54 -07:00
|
|
|
# export TORRENTS_CSV_FRONT_END_DIR=`pwd`/../ui/dist
|
|
|
|
|
2018-12-02 02:16:31 -07:00
|
|
|
# Build the sqlite db from the CSV
|
2020-01-09 12:13:22 -05:00
|
|
|
./build_sqlite.sh -f
|
2018-12-02 02:16:31 -07:00
|
|
|
|
2018-12-01 22:15:54 -07:00
|
|
|
# Build front end
|
2018-10-11 15:30:05 -07:00
|
|
|
cd ../server/ui
|
2018-10-11 16:21:41 -07:00
|
|
|
yarn
|
2018-10-21 18:39:03 -07:00
|
|
|
yarn build
|
2018-12-01 22:15:54 -07:00
|
|
|
|
|
|
|
# Build back end
|
2018-10-11 14:59:30 -07:00
|
|
|
cd ../service
|
2018-10-22 15:31:34 -07:00
|
|
|
cargo run --release
|