Permalink
Browse files

sclay -> /srv

  • Loading branch information...
1 parent 4dba6ce commit 37c8d36eb78c339e4c25699c0f11f8d12398c219 @samuelclay committed Feb 26, 2013
Showing with 14 additions and 14 deletions.
  1. +4 −4 config/gunicorn_conf.py
  2. +1 −1 config/logrotate.conf
  3. +4 −4 config/staging.conf
  4. +1 −1 fabfile.py
  5. +2 −2 utils/backups/s3.py
  6. +2 −2 utils/s3_utils.py
@@ -4,10 +4,10 @@
NUM_CPUS = psutil.NUM_CPUS
bind = "127.0.0.1:8000"
-pidfile = "/home/sclay/newsblur/logs/gunicorn.pid"
-logfile = "/home/sclay/newsblur/logs/production.log"
-accesslog = "/home/sclay/newsblur/logs/production.log"
-errorlog = "/home/sclay/newsblur/logs/errors.log"
+pidfile = "/srv/newsblur/logs/gunicorn.pid"
+logfile = "/srv/newsblur/logs/production.log"
+accesslog = "/srv/newsblur/logs/production.log"
+errorlog = "/srv/newsblur/logs/errors.log"
loglevel = "debug"
name = "newsblur"
timeout = 120
@@ -1,4 +1,4 @@
-/home/sclay/newsblur/logs/*.log {
+/srv/newsblur/logs/*.log {
daily
rotate 10
copytruncate
View
@@ -7,7 +7,7 @@ server {
client_max_body_size 4G;
server_name dev.newsblur.com;
- if (-f /home/sclay/staging/media/maintenance.html) {
+ if (-f /srv/staging/media/maintenance.html) {
rewrite ^(.*) http://www.newsblur.com;
break;
}
@@ -17,17 +17,17 @@ server {
}
location /media/ {
expires max;
- root /home/sclay/staging;
+ root /srv/staging;
}
location /favicon.ico {
- alias /home/sclay/staging/media/img/favicon_32.png;
+ alias /srv/staging/media/img/favicon_32.png;
expires max;
access_log off;
}
location ^~ /crossdomain.xml {
expires max;
- alias /home/sclay/staging/media/crossdomain.xml;
+ alias /srv/staging/media/crossdomain.xml;
types {
text/x-cross-domain-policy xml;
}
View
@@ -260,7 +260,7 @@ def backup_mongo():
def backup_postgresql():
# crontab for postgres master server
- # 0 4 * * * python /home/sclay/newsblur/utils/backups/backup_psql.py
+ # 0 4 * * * python /srv/newsblur/utils/backups/backup_psql.py
# 0 * * * * sudo find /var/lib/postgresql/9.1/archive -mtime +1 -exec rm {} \;
with cd(os.path.join(env.NEWSBLUR_PATH, 'utils/backups')):
View
@@ -3,8 +3,8 @@
import os
import sys
-if '/home/sclay/newsblur' not in ' '.join(sys.path):
- sys.path.append("/home/sclay/newsblur")
+if '/srv/newsblur' not in ' '.join(sys.path):
+ sys.path.append("/srv/newsblur")
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
from django.conf import settings
View
@@ -6,8 +6,8 @@
from boto.s3.key import Key
from utils.image_functions import ImageOps
-if '/home/sclay/newsblur' not in ' '.join(sys.path):
- sys.path.append("/home/sclay/newsblur")
+if '/srv/newsblur' not in ' '.join(sys.path):
+ sys.path.append("/srv/newsblur")
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
from django.conf import settings

0 comments on commit 37c8d36

Please sign in to comment.