Skip to content

Commit

Permalink
sclay -> /srv
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelclay committed Feb 26, 2013
1 parent 4dba6ce commit 37c8d36
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions config/gunicorn_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion config/logrotate.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/home/sclay/newsblur/logs/*.log {
/srv/newsblur/logs/*.log {
daily
rotate 10
copytruncate
Expand Down
8 changes: 4 additions & 4 deletions config/staging.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')):
Expand Down
4 changes: 2 additions & 2 deletions utils/backups/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions utils/s3_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 37c8d36

Please sign in to comment.