Skip to content

Commit 5c76c68

Browse files
authored
Merge pull request #42 from strangest-quark/master
Fixing python path #39
2 parents b0443d5 + 2c97523 commit 5c76c68

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

stackbox-brew.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ echo " ___| |_ __ _ ___| | _| |__ _____ __"
55
echo "/ __| __/ _ |/ __| |/ / '_ \ / _ \ \/ /"
66
echo "\__ \ || (_| | (__| <| |_) | (_) > <"
77
echo '|___/\__\__,_|\___|_|\_\_.__/ \___/_/\_\'
8-
echo "\n"
9-
8+
printf "\n"
109
echo "######## SELECT YOUR STACK #############"
1110

1211
stack=()
@@ -113,24 +112,26 @@ python3_version=$(python3 --version)
113112
if beginswith "Python 3" "$python_version" ;
114113
then
115114
var="$(pip --disable-pip-version-check install -r $installationPath/requirements.txt) > /dev/null "
116-
python ../stack.py ${stack[*]}
115+
python $installationPath/stack.py ${stack[*]}
117116
elif beginswith "Python 3" "$python3_version";
118117
then
119118
var="$(pip3 --disable-pip-version-check install -r $installationPath/requirements.txt) > /dev/null"
120-
python3 ../stack.py ${stack[*]}
119+
python3 $installationPath/stack.py ${stack[*]}
121120
else
122121
echo "Unable to find a python 3 installation"
123122
fi
124123

125124
docker-compose -f $installationPath/docker-compose.yml down 2> /dev/null > logs/docker-compose-down-log.txt
126125
docker-compose -f $installationPath/docker-compose.yml build > logs/docker-compose-build-log.txt
127126

127+
printf "\n"
128128
echo "######## DEPLOYING YOUR STACK ##############"
129129

130130
docker-compose -f $installationPath/docker-compose.yml up -d --remove-orphans
131131

132132
sleep 5
133133

134+
printf "\n"
134135
echo "######## YOUR STACK ########################"
135136

136137
containers=$(docker ps --format '{{.Names}}')
@@ -162,7 +163,7 @@ do
162163
fi
163164
done
164165

165-
166+
printf "\n"
166167
echo "######## SETTING YOUR CODE DIRECTORY #############"
167168

168169
mkdir stackbox

0 commit comments

Comments
 (0)