Skip to content

Commit

Permalink
feat: update start script of demo (#3143)
Browse files Browse the repository at this point in the history
* Update start script of demo

* Refine script for shell check

* Refine for shellcheck

* Refine for shellcheck
  • Loading branch information
tobegit3hub authored Mar 20, 2023
1 parent 363096d commit ab49d27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion demo/jd-recommendation/serving/start_predict_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

echo "start predict server"

cd $(dirname $0)
cd "$(dirname "$0")" || exit 1

nohup python3 predict_server.py 127.0.0.1:9080 127.0.0.1:8000 >/tmp/p.log 2>&1 &
sleep 1
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

# start_predict_server.sh

cd "$(dirname "$0")" || exit 1

echo "start predict server"
nohup python3 predict_server.py "$1" "$2" >/tmp/p.log 2>&1 &
sleep 1

0 comments on commit ab49d27

Please sign in to comment.