Commit 8f9234a1 by Őry Máté

fab: support bower

parent 775b7c5e
...@@ -34,6 +34,15 @@ def pip(env, req): ...@@ -34,6 +34,15 @@ def pip(env, req):
run("pip install -r %s" % req) run("pip install -r %s" % req)
def bower(component=None):
"Install bower component"
with cd("~/circle/circle"):
if component:
run("bower install %s" % component)
else:
run("bower install")
@roles('portal') @roles('portal')
def migrate(): def migrate():
"Run db migrations" "Run db migrations"
...@@ -104,6 +113,7 @@ def update_portal(test=False): ...@@ -104,6 +113,7 @@ def update_portal(test=False):
with _stopped("portal", "manager"): with _stopped("portal", "manager"):
pull() pull()
pip("circle", "~/circle/requirements.txt") pip("circle", "~/circle/requirements.txt")
bower()
migrate() migrate()
compile_things() compile_things()
if test: if test:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment