Browse files

Fix makesite template

  • Loading branch information...
1 parent 29d205b commit 09f288d0132959ae4355191c45b5a88c39f6b311 @klen committed Aug 5, 2012
Showing with 8 additions and 2 deletions.
  1. +2 −0 .makesite/flask/service/flask_install_update.sh.tmpl
  2. +4 −0 Makefile
  3. +1 −1 base/config/production.py
  4. +1 −1 makesite.ini
View
2 .makesite/flask/service/flask_install_update.sh.tmpl
@@ -8,4 +8,6 @@ DEPLOYDIR={{ deploy_dir }}
sudo $PYTHON $SOURCEDIR/manage.py collect
+sudo $PYTHON $SOURCEDIR/manage.py create_db
+sudo $PYTHON $SOURCEDIR/manage.py migrate run
sudo chown $USER:$GROUP -R $DEPLOYDIR
View
4 Makefile
@@ -49,3 +49,7 @@ babel: $(BABELDIR)/ru
$(BABELDIR)/ru:
$(PYBABEL) init -i $(BABELDIR)/babel.pot -d $(BABELDIR) -l ru
+
+.PHONY: chown
+chown:
+ sudo chown $(USER):$(USER) -R $(CURDIR)
View
2 base/config/production.py
@@ -15,7 +15,7 @@
DEFAULT_MAIL_SENDER = 'Admin < %s >' % MAIL_USERNAME
ADMINS = frozenset([MAIL_USERNAME])
-COLLECT_STATIC_DIR = op.join(op.dirname(ROOTDIR), 'static')
+COLLECT_STATIC_ROOT = op.join(op.dirname(ROOTDIR), 'static')
OAUTH_TWITTER = dict(
base_url='http://api.twitter.com/1/',
View
2 makesite.ini
@@ -1,5 +1,5 @@
[Main]
-template=virtualenv,uwsgi,celeryd,flask
+template=virtualenv,uwsgi,flask
[Templates]
flask=%(source_dir)s/.makesite/flask

0 comments on commit 09f288d

Please sign in to comment.