update setup
This commit is contained in:
@@ -50,8 +50,8 @@ else
|
||||
help
|
||||
else
|
||||
# add 127.0.0.1 town.nation in /ertc/hoss if not already exist to make localhost available
|
||||
dns=$(basename "$PWD" | sed 's/-/./g')
|
||||
grep -q "^127.0.0.1 $dns" /etc/hosts || echo "127.0.0.1 $dns" | sudo tee -a /etc/hosts > /dev/null
|
||||
#dns=$(basename "$PWD" | sed 's/-/./g')
|
||||
#grep -q "^127.0.0.1 $dns" /etc/hosts || echo "127.0.0.1 $dns" | sudo tee -a /etc/hosts > /dev/null
|
||||
if [ -z "$gitrepo" ]; then
|
||||
wget "${url}/${tribe}/setup.apxtri.tar.gz"
|
||||
tar -xzf setup.apxtri.tar.gz -C . -p && rm setup.apxtri.tar.gz
|
||||
@@ -76,8 +76,15 @@ else
|
||||
# add specific dependancy for tribe if apxtri exist
|
||||
cd "$tribe"
|
||||
if [ -d "$PWD/apxtri" ]; then
|
||||
nvm install --lts
|
||||
nvm use --lts
|
||||
yarn install
|
||||
fi
|
||||
if [ -d "$PWD/pytri" ]; then
|
||||
sudo apt install python3-venv -y
|
||||
python3 -m venv pythonenv
|
||||
echo "Python virtual env venv installed, don't forget to use $ source ${tribe}/pythonenv/bin/activate; before running any python script then $ deactivate"
|
||||
fi
|
||||
# run as dev that will create missing file to make it works
|
||||
cd ../adminapi
|
||||
yarn dev
|
||||
|
Reference in New Issue
Block a user