anchor.diff:  setup_redgrid_vals() ->
       application:load(redgrid),
       application:set_env(redgrid, local_ip, config(local_ip)),
  -    application:set_env(redgrid, redis_url, config(redis_stats_url)),
  +    application:set_env(redgrid, redis_url, config(redgrid_redis_url)),
       application:set_env(redgrid, domain, config(cloud_name)),
       ok.
   
   setup_redis_shards() ->
  -    URLs = case os:getenv("LOGPLEX_SHARD_URLS") of
  +    URLs = case config(logplex_shard_urls) of
                  UrlString when is_list(UrlString), UrlString =/= [] ->
                      string:tokens(UrlString, ",");
                  _ ->
  -                   case os:getenv("LOGPLEX_CONFIG_REDIS_URL") of
  -                       false -> ["redis://127.0.0.1:6379/"];
  -                       Url -> [Url]
  -                   end
  +                   [config(config_redis_url)]
              end,
       application:set_env(logplex, logplex_shard_urls,
                           logplex_shard:redis_sort(URLs)).
  
positive.code:     a_start(App, Type);
  start_ok(App, _Type, {error, Reason}) ->
      erlang:error({app_start_failed, App, Reason}).
  
  redo_opts() ->
      case os:getenv("LOGPLEX_CONFIG_REDIS_URL") of
          false -> [];
          Url ->
              ParsedUrl = redo_uri:parse(Url),
              application:set_env(?APP, config_redis_url, ParsedUrl)
      end.
  
negative.code:     case config(crashdump_dir, undefined) of
          undefined ->
              case os:getenv("ERL_CRASH_DUMP") of
                  false -> undefined;
                  File -> filename:dirname(File)
              end;
          Dir -> Dir
      end.
  