Closed Bug 892080 Opened 11 years ago Closed 11 years ago

Update Site data for AirMozilla

Categories

(Infrastructure & Operations :: IT-Managed Tools, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: peterbe, Assigned: jd)

Details

Can you set up the Site data for each site in its django shell (./manage.py shell):

For air-dev::

>>> from django.contrib.sites.models import Site
>>> site, = Site.objects.all()
>>> site.domain = 'air-dev.allizom.org'
>>> site.save()

For air stage::

>>> from django.contrib.sites.models import Site
>>> site, = Site.objects.all()
>>> site.domain = 'air.allizom.org'
>>> site.save()

For air prod::

>>> from django.contrib.sites.models import Site
>>> site, = Site.objects.all()
>>> site.domain = 'air.mozilla.org'
>>> site.save()
does this write something to the database, or does this need to be run on *every* web head in each cluster?
Assignee: server-ops-webops → cturra
Flags: needinfo?(peterbe)
OS: Mac OS X → All
Hardware: x86 → All
:peterbe - any update on this?
(In reply to Chris Turra [:cturra] from comment #1)
> does this write something to the database, or does this need to be run on
> *every* web head in each cluster?

Just once. It updates the database. 
I just don't have any way to update the database this way via the web.
Flags: needinfo?(peterbe)
This has been accomplished. Please let me know if the results are not as expected.

Regards
Assignee: cturra → jcrowe
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.