Skip to content
This repository has been archived by the owner on Jul 9, 2020. It is now read-only.

Commit

Permalink
Add upload shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
klen committed Sep 29, 2012
1 parent f17b835 commit 63648e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .makesite/flask/service/flask_install_update.sh.tmpl
Expand Up @@ -8,6 +8,7 @@ DEPLOYDIR={{ deploy_dir }}
CONFIG=base.config.{{ mode }} CONFIG=base.config.{{ mode }}




cd $SOURCEDIR
sudo $PYTHON $SOURCEDIR/manage.py collect -c $CONFIG sudo $PYTHON $SOURCEDIR/manage.py collect -c $CONFIG
sudo $PYTHON $SOURCEDIR/manage.py alembic upgrade head -c $CONFIG sudo $PYTHON $SOURCEDIR/manage.py alembic upgrade head -c $CONFIG
sudo chown $USER:$GROUP -R $DEPLOYDIR sudo chown $USER:$GROUP -R $DEPLOYDIR
5 changes: 5 additions & 0 deletions Makefile
Expand Up @@ -67,3 +67,8 @@ $(BABELDIR)/ru:
.PHONY: chown .PHONY: chown
chown: chown:
sudo chown $(USER):$(USER) -R $(CURDIR) sudo chown $(USER):$(USER) -R $(CURDIR)

.PHONY upload
upload:
git push
makesite update foundation -p /var/www -H ubuntu@foundation.node42.org

0 comments on commit 63648e1

Please sign in to comment.