  if(!isset($GLOBALS['ENV_MYSQL_READ_ONLY']))     $GLOBALS['ENV_MYSQL_READ_ONLY'] = false;
  if(!isset($GLOBALS['ENV_MYSQL_ONLY_MASTER']))   $GLOBALS['ENV_MYSQL_ONLY_MASTER'] = false;
 diff --git a/config/environment.php b/config/environment.php
-index 804789f..bbdaf6a 100644
+index 804789f..4e8b6cc 100644
 --- a/config/environment.php
 +++ b/config/environment.php
 @@ -6,14 +6,15 @@ if(!isset($GLOBALS['DEFAULT_TIMEZONE'])) $GLOBALS['DEFAULT_TIMEZONE'] = 'America
  date_default_timezone_set($GLOBALS['DEFAULT_TIMEZONE']);  // Required by resque...
- 
+
  /* best to leave the PHP settings at the top in case they are overridden in another environment */
 -ini_set('memory_limit', '1024M'); // 1GB maximum memory usage
 -ini_set('max_execution_time', '21600'); // 6 hours

+if(!isset($GLOBALS['ENV_MYSQL_DEBUG'])) $GLOBALS['ENV_MYSQL_DEBUG'] = false;
+if(!isset($GLOBALS['ENV_DEBUG_TO_FILE'])) $GLOBALS['ENV_DEBUG_TO_FILE'] = true;
 if(!isset($GLOBALS['ENV_DEBUG_FILE_FLUSH'])) $GLOBALS['ENV_DEBUG_FILE_FLUSH'] = false;
 
 if(!isset($GLOBALS['ENV_ENABLE_CACHING'])) $GLOBALS['ENV_ENABLE_CACHING'] = true;
@@ -37,13 +39,15 @@ if(!defined('SPARQL_UPLOAD_ENDPOINT')) define("SPARQL_UPLOAD_ENDPOINT", "http://
 if(!defined('SPARQL_USERNAME')) define("SPARQL_USERNAME", "dba");
 if(!defined('SPARQL_PASSWORD')) define("SPARQL_PASSWORD", "dba");
 
+if(!defined('DOWNLOAD_TIMEOUT_SECONDS'))    define('DOWNLOAD_TIMEOUT_SECONDS', '45');
+
 /* Initialize app - this should be towards the top of environment.php,
    but declare the WEB_ROOT and caching settings first.
    This will load values from ./environments/ENV_NAME.php before values below
 */
 require_once(dirname(__FILE__) . '/boot.php');
 
-// $GLOBALS['log_file'] = fopen(DOC_ROOT . "temp/processes.log", "a+");
+$GLOBALS['log_file'] = fopen(DOC_ROOT . "temp/processes.log", "a+");
 
 
 
@@ -83,12 +87,12 @@ php_active_record\require_vendor('eol_content_schema_v2');
 
 
 /* For content downloading */
-# where harvested media will be downloaded to (must be web accessible)
-if(!defined('CONTENT_LOCAL_PATH'))          define('CONTENT_LOCAL_PATH',            DOC_ROOT . 'applications/content_server/content/');

+ini_set('max_execution_time', '604800'); // 7 days
+ini_set('display_errors', true);
+

 /* Default Environment */
-if(!isset($GLOBALS['ENV_NAME'])) $GLOBALS['ENV_NAME'] = 'development';
+if(!isset($GLOBALS['ENV_NAME'])) $GLOBALS['ENV_NAME'] = 'production';
 // passing in the CLI arguments
-set_and_load_proper_environment($argv);
+@set_and_load_proper_environment($argv);


 if(!defined('PS_LITE_CMD')) define('PS_LITE_CMD', 'ps -eo uid,pid,ppid,stime,tty,time,command'); // No -f
@@ -24,18 +25,22 @@ if(!defined('GUNZIP_BIN_PATH')) define('GUNZIP_BIN_PATH', 'gunzip');
 if(!defined('UNZIP_BIN_PATH')) define('UNZIP_BIN_PATH', 'unzip');
 if(!defined('TAR_BIN_PATH')) define('TAR_BIN_PATH', 'tar');
 if(!defined('FILE_BIN_PATH')) define('FILE_BIN_PATH', 'file');
+if(!defined('RESQUE_HOST')) define('RESQUE_HOST', '10.252.248.35:6379');

 if(!isset($GLOBALS['ENV_DEBUG'])) $GLOBALS['ENV_DEBUG'] = true;
-if(!isset($GLOBALS['ENV_MYSQL_DEBUG'])) $GLOBALS['ENV_MYSQL_DEBUG'] = true;
-if(!isset($GLOBALS['ENV_DEBUG_TO_FILE'])) $GLOBALS['ENV_DEBUG_TO_FILE'] = false;
