...
This commit is contained in:
parent
19988900c6
commit
776f89af69
16
README.md
16
README.md
@ -2,19 +2,15 @@
|
||||
|
||||
new version of threefold, minimalistic
|
||||
|
||||
|
||||
|
||||
## to debug / develop
|
||||
## install
|
||||
|
||||
```bash
|
||||
hero git clone -u git@git.ourworld.tf:tfgrid/www_threefold4.git
|
||||
cd ~/code/git.ourworld.tf/tfgrid/www_threefold4
|
||||
source myenv.sh
|
||||
# to test an example
|
||||
cd poc
|
||||
python server.py
|
||||
~/code/git.ourworld.tf/tfgrid/www_threefold4/install.sh
|
||||
```
|
||||
|
||||
## to add package to pip
|
||||
## to start the server for seeing the website
|
||||
|
||||
add it to https://git.ourworld.tf/projectmycelium/hero_server/src/branch/main/requirements.txt
|
||||
```bash
|
||||
~/code/git.ourworld.tf/tfgrid/www_threefold4/start.sh
|
||||
```
|
||||
|
15
install.sh
15
install.sh
@ -5,20 +5,11 @@ source ${BASE_DIR}/myenv.sh
|
||||
cd $BASE_DIR
|
||||
|
||||
python3 -m pip install -r "$BASE_DIR/requirements.txt"
|
||||
|
||||
# pip freeze > requirements.txt
|
||||
|
||||
#to make sure we have the paths towards hero in our library
|
||||
pip install --upgrade pip
|
||||
|
||||
PYTHON_VERSION=$(python3 -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')")
|
||||
echo "$BASE_DIR/lib" > "${VENV_DIR}/lib/python${PYTHON_VERSION}/site-packages/herolib.pth"
|
||||
|
||||
#for osx
|
||||
# pip3 install psycopg2-binary
|
||||
# psycopg2
|
||||
# echo "$BASE_DIR/lib" > "${VENV_DIR}/lib/python${PYTHON_VERSION}/site-packages/herolib.pth"
|
||||
|
||||
|
||||
echo "OK"
|
||||
|
||||
|
||||
python3 -m pip install -r "requirements.txt"
|
||||
pip install --upgrade pip
|
||||
|
Loading…
Reference in New Issue
Block a user