Closed Bug 572502 Opened 14 years ago Closed 14 years ago

Set up Firefox Input staging site

Categories

(mozilla.org Graveyard :: Server Operations, task)

All
Other
task
Not set
major

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: wenzel, Assigned: fox2mike)

References

Details

Please set up a staging site for Firefox Input. It works just like all the other Django applications we've recently set up (such as tuxedo). In essence:

- git clone git://github.com/fwenzel/reporter.git
- make a virtualenv with Python 2.6, activate it
- pip install -r requirements.txt
- create settings_local.py and set up the necessary parts from settings.py in it, essentially:
-- database
-- admin (set that to my mozilla.com address)
- follow the "getting started" section of the README file <http://github.com/fwenzel/reporter/blob/master/README.md>, including updating product details and initializing the search index. Also set up the cron jobs. (Suggested frequency: every 5min for the search index update, every hour for the product details update. Make sure to run these inside the virtualenv.)
- hook up the wsgi entry point to Apache.

Also, let me know the Django superuser credentials that you set up, please.
Two things to add:

- staging URL: input.stage.mozilla.com
- Can we get an idea of when this can get accomplished and who will be doing it? (Thanks!)
We've been using vendor directories instead of pip install -r.  Can you set one up for this app?
(In reply to comment #2)
> We've been using vendor directories instead of pip install -r.  Can you set one
> up for this app?

CCing Jeff: Is there any documentation on how (or even why) to do this? Thanks :)
(In reply to comment #3)
> CCing Jeff: Is there any documentation on how (or even why) to do this? Thanks
> :)

pip installing across an entire cluster was sort of messy, took a long time, and was fail if the pypi servers were down. Aside from that, oncall sysadmins aren't very familiar with pip and virtualenvs in general and confusion ensued.
(In reply to comment #1)

> - staging URL: input.stage.mozilla.com

Will probably be input-stage.mozilla.com/org

> - Can we get an idea of when this can get accomplished and who will be doing
> it? (Thanks!)

Depends. Either Jeremy, Trevor or me.
Thanks, Jeremy and Jeff!

I set up a vendor library as described and hooked it into manage.py.

Please install the app as above, but instead of the ``pip`` step, follow these instructions:
http://jbalogh.github.com/zamboni/topics/packages/#using-the-vendor-library

... replacing the vendor repository URL with:
git://github.com/fwenzel/reporter-lib.git
Looks like I get dibs on this and since I like Fred so much and he asked over IRC...
Assignee: server-ops → shyam
<3
And so this is up and running. Crons have been setup as requested. had to install MySQL-python26, but the rest of the stuff worked as expected for the most part.

http://input.stage.mozilla.com/ is the final URL.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Seems to work just fine, thanks! I'll file further bugs if we need anything else. Also note that we'd appreciate setting up prod probably on Monday, so Shyam will once again get to work his magic ;).
Status: RESOLVED → VERIFIED
Blocks: 573468
Product: mozilla.org → mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.