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.
Not forcing anything, just downloading the file here. I can change it, but
heading to the airport now. If someone else can get to this sooner, that
would be great. Need to unpack GG 13_8 on the beast and download that tree
(and ideally the other files, too, eg the rep seqs)
On Oct 12, 2014 6:30 PM, "Antonio Gonzalez" <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",
>
> One more thing, you are forcing the production version to use this tree,
> right?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/biocore/qiita/pull/366/files#r18751514>.
>