Change deployment script to use v3
This commit is contained in:
parent
1fef2c8128
commit
d4cdca7151
1 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ GREEN='tput setaf 2'
|
||||||
|
|
||||||
cd
|
cd
|
||||||
echo "$($YELLOW)>> Fetching Repository...$($NC)"
|
echo "$($YELLOW)>> Fetching Repository...$($NC)"
|
||||||
ctf fetch RealOrangeOne/theorangeone.net master deployment
|
ctf fetch RealOrangeOne/theorangeone.net v3 deployment
|
||||||
sleep 15
|
sleep 15
|
||||||
echo "$($YELLOW)>> Entering Project...$($NC)"
|
echo "$($YELLOW)>> Entering Project...$($NC)"
|
||||||
project_dir="$(\ls -1dt ./*/ | head -n 1)"
|
project_dir="$(\ls -1dt ./*/ | head -n 1)"
|
||||||
|
@ -20,7 +20,7 @@ ctf project run build
|
||||||
ctf project run manage.py migrate
|
ctf project run manage.py migrate
|
||||||
echo "$($YELLOW)>> Routing Project...$($NC)"
|
echo "$($YELLOW)>> Routing Project...$($NC)"
|
||||||
ident=$project_dir + ":development:web"
|
ident=$project_dir + ":development:web"
|
||||||
ctf router theorangeone.net --ident %ident
|
ctf router staging.theorangeone.net --ident %ident
|
||||||
echo "$($YELLOW)>> Destroying Previous Project...$($NC)"
|
echo "$($YELLOW)>> Destroying Previous Project...$($NC)"
|
||||||
cd -
|
cd -
|
||||||
cd previous_dir
|
cd previous_dir
|
||||||
|
|
Reference in a new issue