Commits

Ian Lewis committed 0627ce6

Update deploy scripts for Django 1.4 support.

Comments (0)

Files changed (1)

scripts/fabfile.py

 
 def _run_app_cmd(cmd):
     with prefix('source %(venv_path)s/bin/activate' % env):
-        with cd('%(app_path)s/app' % env):
+        with cd('%(app_path)s/' % env):
             sudo(cmd, user=env.deploy_user)
 
 @roles('webservers')
 
 @roles('webservers')
 def put_settings():
-    put("%s/app/settings_production.py" % ROOT_PATH, "%(app_path)s/app/settings_local.py" % env, use_sudo=True)
-    sudo('chown %(deploy_user)s:%(deploy_user)s "%(app_path)s/app/settings_local.py"' % env)
+    put("%s/homepage/settings_production.py" % ROOT_PATH, "%(app_path)s/homepage/settings_local.py" % env, use_sudo=True)
+    sudo('chown %(deploy_user)s:%(deploy_user)s "%(app_path)s/homepage/settings_local.py"' % env)
 
 @roles('webservers')
 def deploy():
     env.roledefs.update({
         'webservers': ['www.ianlewis.org'],
     })
-    env.rev = 'default' 
-    env.settings = 'settings_local'
+    env.rev = 'bootstrap' 
+    env.settings = 'homepage.settings_local'
     env.app_path = '/var/www/vhosts/homepage'
     env.venv_path = '/var/www/venvs/homepage'
     env.service_path = '/etc/service/homepage'
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.