diff --git a/circle.yml b/circle.yml index ad548bf..d73c98c 100644 --- a/circle.yml +++ b/circle.yml @@ -15,9 +15,3 @@ dependencies: test: override: - ./runtests - -deployment: - production: - branch: v3 - commands: - - ./scripts/ci-deploy.sh diff --git a/scripts/ci-deploy.sh b/scripts/ci-deploy.sh deleted file mode 100755 index eed3570..0000000 --- a/scripts/ci-deploy.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env bash - -set -e - -RED='tput setaf 1' -NC='tput sgr 0' -YELLOW='tput setaf 3' -GREEN='tput setaf 2' - -if [ -z "$CIRCLE_PROJECT_USERNAME"]; then - echo "$($RED)You need to be running on CircleCI to deploy!$($NC)" - exit 1 -fi - -ssh web@theorangeone.net 'bash -s' < ./scripts/deploy.sh -echo "$($GREEN)Deployment complete!$($NC)" diff --git a/scripts/deploy.sh b/scripts/deploy.sh deleted file mode 100755 index 8926382..0000000 --- a/scripts/deploy.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env bash - -set -e - -RED='tput setaf 1' -NC='tput sgr 0' -YELLOW='tput setaf 3' -GREEN='tput setaf 2' - -cd -echo "$($YELLOW)>> Fetching Repository...$($NC)" -ctf fetch RealOrangeOne/theorangeone.net v3 deployment -sleep 15 -echo "$($YELLOW)>> Entering Project...$($NC)" -project_dir="$(\ls -1dt ./*/ | head -n 1)" -previous_dir = "$(\ls -1dt ./*/ | head -n 2)" -cd project_dira -echo "$($YELLOW)>> Building Project...$($NC)" -ctf project run build -ctf project run manage.py migrate -echo "$($YELLOW)>> Routing Project...$($NC)" -ident=$project_dir + ":development:web" -ctf router staging.theorangeone.net --ident %ident -echo "$($YELLOW)>> Destroying Previous Project...$($NC)" -cd - -cd previous_dir -ctf project stop -cd - -rm -rf previous_dir