Skip to content

Commit

Permalink
Merge pull request sc3#438 from bepetersn/master
Browse files Browse the repository at this point in the history
Issue sc3#437; make corrections to nginx conf and scraper.sh
  • Loading branch information
bepetersn committed Jun 5, 2014
2 parents a6e60a2 + b7aa4b6 commit c4b3f43
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion config/nginx.conf.master
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ server {
limit_except GET {
deny all;
}
root /home/ubuntu/website/scratch/scraper;
root /home/ubuntu/website;
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
Expand Down
6 changes: 2 additions & 4 deletions fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,8 @@ def activate_cmd():


def add_directories():
"""
Adds directories if needed
"""
dirs = [WEBSITE, WEBSITE + '/1.0/db_backups/']
""" Documents how to create requisite project directories. """
dirs = [WEBSITE, WEBSITE + '/1.0/db_backups/', WEBSITE + '/raw_inmate_data']
for d in dirs:
if not exists(d):
run("mkdir -p '%s'" % d)
Expand Down
4 changes: 2 additions & 2 deletions scripts/scraper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ DB_BACKUP_FILE=cookcountyjail-$(date +%Y-%m-%d).json
SCRAPER_OPTIONS='--verbose'

# export env variables related to raw inmate data
export CCJ_RAW_INMATE_DATA_BUILD_DIR=${HOME}'/website/scraper/raw_inmate_data'
export CCJ_RAW_INMATE_DATA_RELEASE_DIR=${CCJ_RAW_INMATE_DATA_BUILD_DIR}
export CCJ_RAW_INMATE_DATA_BUILD_DIR=${HOME}'/website/scratch/scraper/raw_inmate_data'
export CCJ_RAW_INMATE_DATA_RELEASE_DIR=${HOME}'/website/raw_inmate_data'
export CCJ_STORE_RAW_INMATE_DATA=1

# Bind in virtualenv settings
Expand Down

0 comments on commit c4b3f43

Please sign in to comment.