Production env

Looks like a lot of changes, but is more copy-and-paste than anything else.  Basically, broke code out into managebly-sized functions and added a function to create the production environment.
Why is that tree in evident?
On Oct 12, 2014 5:57 PM, "adamrp" <notifications@github.com> wrote:

> In qiita_db/environment_manager.py:
>
> > +    print ('Loading Ontology Data')
> > +    ontos_fp, f = download_and_unzip_file(
> > +        host='thebeast.colorado.edu',
> > +        filename='/pub/qiita/qiita_ontoandvocab.sql.gz')
> > +    cur.execute(f.read())
> > +    f.close()
> > +    remove(ontos_fp)
> > +
> > +
> > +def _download_test_files(cur, base_data_dir):
> > +    print('Downloading test files')
> > +    # Download tree file
> > +    url = ("https://raw.githubusercontent.com/biocore/Evident/master"
> > +           "/data/gg_97_otus_4feb2011.tre")
> > +    try:
> > +        urlretrieve(url, join(base_data_dir, "reference",
>
> Just copied and pasted from existing code, I have no idea why we were
> using the old one in the first place, but it should probably be changed
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/biocore/qiita/pull/366/files#r18751264>.
>