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.
For demo env, yes. Bad idea?
On Oct 12, 2014 9:27 PM, "Daniel McDonald" <notifications@github.com> wrote:

> In qiita_db/environment_manager.py:
>
> > +                 base_work_dir))
> > +
> > +    if load_ontologies:
> > +        _add_ontology_data(cur)
> > +
> > +    if env == 'demo':
> > +        _download_test_files(cur, base_data_dir)
> > +        _create_layout_and_init_db(cur)
> > +
> > +        # add demo user
> > +        cur.execute("""
> > +            INSERT INTO qiita.qiita_user (email, user_level_id, password,
> > +                                          name, affiliation, address, phone)
> > +            VALUES
> > +            ('demo@microbio.me', 4,
> > +             '$2a$12$gnUi8Qg.0tvW243v889BhOBhWLIHyIJjjgaG6dxuRJkUM8nXG9Efe',
>
> Hard coded credentials?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/biocore/qiita/pull/366/files#r18753591>.
>