Skip to content

Commit

Permalink
Deploy can now accept different branches
Browse files Browse the repository at this point in the history
  • Loading branch information
OrenLederman committed Aug 5, 2016
1 parent 1b9e14d commit 36cb9ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deploy/fabric/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
USERNAME = passwords.LINUX_USERNAME
USER_PASSWORD = passwords.LINUX_PASSWORD
GIT_PROJECT_NAME = passwords.GIT_PROJECT_NAME
GIT_PROJECT_BRANCH = passwords.GIT_PROJECT_BRANCH
MYSQL_ROOT_PASSWORD = passwords.MYSQL_ROOT_PASSWORD

env.user = USERNAME
Expand All @@ -34,6 +35,7 @@ def deploy():
run("git reset --hard")
run("git clean -f -d")
run("git pull")
run("git checkout {0}".format(GIT_PROJECT_BRANCH))

sudo('pip install -r requirements.txt')

Expand Down
1 change: 1 addition & 0 deletions src/project/passwords.py.template
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ in the template.
LINUX_USERNAME = ""
LINUX_PASSWORD = ""
GIT_PROJECT_NAME = ""
GIT_PROJECT_BRANCH = "master"
GITHUB_SSH_URL = ""
MYSQL_ROOT_PASSWORD = ""

Expand Down

0 comments on commit 36cb9ce

Please sign in to comment.