Closed
Bug 874605
Opened 12 years ago
Closed 12 years ago
[bedrock] Update configuration for demo3 and deploy
Categories
(Infrastructure & Operations Graveyard :: WebOps: Other, task)
Infrastructure & Operations Graveyard
WebOps: Other
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: pmac, Assigned: cturra)
References
()
Details
(Whiteboard: [push interrupt])
+++ This bug was initially created as a clone of Bug #872797 +++
This is for bedrock demo3 instance. Please push the "bug-845904-newsletter-preference-center" branch.
We can't use chief for this one because we've just shifted a bunch of code around. :jd helped us with the www-dev environment in bug 872704, so hopefully those steps will work here.
1. Sync down latest from bug-845904-newsletter-preference-center branch on github.
2. Move the local.py file: It moved from settings/local.py to bedrock/settings/local.py. This file is under puppet.
3. Delete old directories:
PWD='/data/www/www.allizom.org-django/bedrock'
# this is the dir on the webhead, not sure about admin
rm -rf $PWD/apps
rm -rf $PWD/settings
rm -rf $PWD/vendor-local/src/django
rm -rf $PWD/vendor-local/src/jingo-minify
rm -rf $PWD/vendor-local/src/tower
4. Modify bedrock/settings/local.py:
Remove the line 'from settings import *'
Add the line 'import logging'
5. Continue deployment.
All should be running correctly after this. If not please hit us up on #www and we'll figure it out.
Thanks!
Assignee | ||
Comment 1•12 years ago
|
||
www-demo3 has been updated as requested above.
[root@bedrockadm.private.phx1 bedrock]# git checkout -f origin/bug-845904-newsletter-preference-center
warning: unable to rmdir vendor-local/src/django: Directory not empty
warning: unable to rmdir vendor-local/src/jingo-minify: Directory not empty
warning: unable to rmdir vendor-local/src/tower: Directory not empty
Warning: you are leaving 33 commits behind, not connected to
any of your branches:
368d875 Merge pull request #843 from dpoirier/set-blank-values
e95ebce Don't need @never_cache on the updated newsletter view
4a8c47b Fix tests - @never_cache doesn't get along with mock responses
a642851 Use itemgetter; never cache newsletter existing
... and 29 more.
If you want to keep them by creating a new branch, this may be a good time
to do so with:
git branch new_branch_name 368d8754423897e8351b664dfc2ebce45394d49f
HEAD is now at bcc4d2d... Port newsletter preferences to Bedrock
[root@bedrockadm.private.phx1 bedrock]# mv settings/local.py bedrock/settings/local.py
[root@bedrockadm.private.phx1 bedrock]# rm -rf apps
[root@bedrockadm.private.phx1 bedrock]# rm -rf settings
[root@bedrockadm.private.phx1 bedrock]# rm -rf vendor-local/src/jingo-minify
[root@bedrockadm.private.phx1 bedrock]# rm -rf vendor-local/src/tower
[root@bedrockadm.private.phx1 bedrock]# vim bedrock/settings/local.py
[root@bedrockadm.private.phx1 bedrock]# /data/bedrock-dev/deploy www-demo3.allizom.org-django
[2013-05-21 14:30:48] Running rsync_project
[2013-05-21 14:30:48] [localhost] running: /usr/bin/rsync -aq --include '.gitkeep' --exclude '.git*' --exclude '.hg*' --exclude '.svn*' --exclude 'CVS' --exclude '.bzr*' --delete /data/bedrock-dev/src/www-demo3.allizom.org-django/ /data/bedrock-dev/www/www-demo3.allizom.org-django/
[2013-05-21 14:31:10] [localhost] finished: /usr/bin/rsync -aq --include '.gitkeep' --exclude '.git*' --exclude '.hg*' --exclude '.svn*' --exclude 'CVS' --exclude '.bzr*' --delete /data/bedrock-dev/src/www-demo3.allizom.org-django/ /data/bedrock-dev/www/www-demo3.allizom.org-django/ (21.862s)
[2013-05-21 14:31:10] Finished rsync_project (21.863s)
[2013-05-21 14:31:10] Running push_www
[2013-05-21 14:31:10] [bedrock1.dev.webapp.phx1.mozilla.com] running: /data/bin/update-www.sh www-demo3.allizom.org-django
[2013-05-21 14:31:11] [bedrock1.dev.webapp.phx1.mozilla.com] finished: /data/bin/update-www.sh www-demo3.allizom.org-django (1.203s)
Assignee: server-ops-webops → cturra
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Component: Server Operations: Web Operations → WebOps: Other
Product: mozilla.org → Infrastructure & Operations
Updated•6 years ago
|
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•