forked from HumanSignal/label-studio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
13 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
#!/usr/bin/env bash | ||
virtualenv -p python3 env3 | ||
source env3/bin/activate | ||
pip install -r requirements.txt | ||
python server.py | ||
if command -v python3 &>/dev/null; then | ||
|
||
echo "Server started" | ||
echo "Go to http://localhost:8200" | ||
virtualenv -p python3 env3 | ||
source env3/bin/activate | ||
pip install -r requirements.txt | ||
python server.py | ||
|
||
echo "Server started" | ||
echo "Go to http://localhost:8200" | ||
|
||
else | ||
echo "Python 3 is not installed. Or you can try patch this script to Python 2 (change python3 to python2)" | ||
fi |