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