Skip to content
Snippets Groups Projects
Commit 11bba1af authored by Todd Dembrey's avatar Todd Dembrey
Browse files

hide static methods from the cli

parent a1e0a295
No related branches found
No related tags found
No related merge requests found
...@@ -49,8 +49,8 @@ def pull_production_media(): ...@@ -49,8 +49,8 @@ def pull_production_media():
@roles('staging') @roles('staging')
def deploy_staging(): def deploy_staging():
build_static() _build_static()
deploy_static() _deploy_static()
run('git pull') run('git pull')
run('pip install -r requirements.txt') run('pip install -r requirements.txt')
...@@ -152,7 +152,7 @@ def _post_deploy(): ...@@ -152,7 +152,7 @@ def _post_deploy():
@runs_once @runs_once
def build_static(): def _build_static():
# Build a specific branch # Build a specific branch
build_branch = 'master' build_branch = 'master'
current_branch = local('git rev-parse --abbrev-ref HEAD') current_branch = local('git rev-parse --abbrev-ref HEAD')
...@@ -165,6 +165,6 @@ def build_static(): ...@@ -165,6 +165,6 @@ def build_static():
@runs_once @runs_once
def deploy_static(): def _deploy_static():
# Copy the compiled static files to the server # Copy the compiled static files to the server
local("rsync -avz /vagrant/opentech/static_compiled %s:'../app/opentech/'" % (env['host_string'])) local("rsync -avz /vagrant/opentech/static_compiled %s:'../app/opentech/'" % (env['host_string']))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment