Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
  • 2 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
View
8 fabfile.py
@@ -1,8 +1,7 @@
import datetime
import os
-from os.path import normpath
-from fabric.decorators import runs_once, roles, task
+from fabric.decorators import runs_once
from fabric.operations import put, prompt
from fabric.colors import green, red
from fabric.api import local, cd, sudo
@@ -180,12 +179,15 @@ def unpack(archive_path):
Unpacks the tarball into the correct place but doesn't switch
the symlink
"""
+ # Ensure all folders are in place
+ sudo('if [ ! -d "%(builds_dir)s" ]; then mkdir -p "%(builds_dir)s"; fi' % env)
+
notify("Creating remote build folder")
with cd(env.builds_dir):
sudo('tar xzf %s' % archive_path)
# Create new build folder
- sudo('if [ -d "%(build_dir)s" ]; then rm -rf "%(build_dir)s"; fi'% env)
+ sudo('if [ -d "%(build_dir)s" ]; then rm -rf "%(build_dir)s"; fi' % env)
sudo('mv %(web_dir)s %(build_dir)s' % env)
# Symlink in uploads folder
View
4 www/deploy/apache2/stage.conf
@@ -3,7 +3,7 @@
ServerName stage.{{ project_code }}.{{ client }}.{{ domain }}
DocumentRoot /var/www/nginx-default
- WSGIDaemonProcess {{ client }}-{{ project_code }}-stage processes=9 threads=10 display-name={{ client }}-{{ project_code }}-stage maximum-requests=10000
+ WSGIDaemonProcess {{ client }}-{{ project_code }}-stage processes=2 threads=5 display-name={{ client }}-{{ project_code }}-stage maximum-requests=10000
WSGIProcessGroup {{ client }}-{{ project_code }}-stage
WSGIApplicationGroup %{GLOBAL}
WSGIScriptAlias / /var/www/{{ client }}/{{ project_code }}/builds/stage/deploy/wsgi/stage.wsgi
@@ -26,7 +26,7 @@
AuthType Basic
AuthName "Authentication required"
AuthGroupFile /dev/null
- AuthUserFile /var/www/{{ client }}/{{ project_code }}/builds/stage/deploy/apache/users
+ AuthUserFile /var/www/{{ client }}/{{ project_code }}/builds/stage/deploy/apache2/users
Require valid-user
</Location>
View
4 www/deploy/apache2/test.conf
@@ -3,7 +3,7 @@
ServerName test.{{ project_code }}.{{ client }}.{{ domain }}
DocumentRoot /var/www/nginx-default
- WSGIDaemonProcess {{ client }}-{{ project_code }}-test processes=9 threads=10 display-name={{ client }}-{{ project_code }}-test maximum-requests=10000
+ WSGIDaemonProcess {{ client }}-{{ project_code }}-test processes=2 threads=5 display-name={{ client }}-{{ project_code }}-test maximum-requests=10000
WSGIProcessGroup {{ client }}-{{ project_code }}-test
WSGIApplicationGroup %{GLOBAL}
WSGIScriptAlias / /var/www/{{ client }}/{{ project_code }}/builds/test/deploy/wsgi/test.wsgi
@@ -26,7 +26,7 @@
AuthType Basic
AuthName "Authentication required"
AuthGroupFile /dev/null
- AuthUserFile /var/www/{{ client }}/{{ project_code }}/builds/test/deploy/apache/users
+ AuthUserFile /var/www/{{ client }}/{{ project_code }}/builds/test/deploy/apache2/users
Require valid-user
</Location>

No commit comments for this range

Something went wrong with that request. Please try again.