Skip to content

Instantly share code, notes, and snippets.

View facuescobar's full-sized avatar

Facu Escobar facuescobar

View GitHub Profile
Minimizing /mnt/local/home/escobar/rebelmouse/static/js-build/roar/betawatchers/toggle-questions.js
Minimizing /mnt/local/home/escobar/rebelmouse/static/js-build/roar/includes/googletagmanager.js
Minimizing /mnt/local/home/escobar/rebelmouse/static/js-build/roar/findmypast/libs/masonry.js
[localhost] local: sudo -H -u deploys_roar /bin/bash -c "ssh deploys@wfe-test2 test -d /mnt/local/tmp/deploy-2015-12-11-20-13-45-roar-unitedbmb-escobar || mkdir /mnt/local/tmp/deploy-2015-12-11-20-13-45-roar-unitedbmb-escobar"
[localhost] local: sudo -H -u deploys_roar /bin/bash -c "rsync --exclude ".git" --delete -pthr . deploys@wfe-test2:/mnt/local/tmp/deploy-2015-12-11-20-13-45-roar-unitedbmb-escobar 2>&1"
[localhost] local: sudo -H -u deploys_roar /bin/bash -c "ssh deploys@wfe-test2 fab -f /home/deploys/fabfile_sync.py roar sync_roar:tag=deploy-2015-12-11-20-13-45-roar-unitedbmb-escobar --set upload_static=all,roar=unitedbmb,role=rebelmouse@wfe-test2"
wfe-test2
[rebelmouse@wfe-test2] Executing task 'sync_roar'
[localhost
var data= "hola"
quirement already satisfied (use --upgrade to upgrade): argparse in /usr/lib/python2.7 (from dateutils->feedgen==0.3.1->-r requirements.txt (line 69))
Installing collected packages: beautifulsoup4, BeautifulSoup, coffin, Jinja2, MySQL-python, coverage, django-nose, mock, nose, oauth2, poster, pymongo, python-digest, python-twitpic, redis, tweepy, event, eventlet, Pillow, boto, python-memcached, django-debug-toolbar, python-dateutil, lxml, chardet, jsmin, celery, django-celery, Logbook, IPy, google-api-python-client, readability-lxml, stripe, pycrypto, factory-boy, bitly-api, nltk, numpy, pyga, mailsnake, pytz, wand, ujson, uWSGI, enum34, kissmetrics, apns, gcm-client, python-intercom, oauthlib, epdb, ndg-httpsclient, geopy, storm, urltools, pygiflossy, mailchimp, ua-parser, django-import-export, redisext, fake-factory, ddt, feedgen, markdown, sqlparse, bleach, threadpool, pep8, pyflakes, flake8, termcolor, mongoengine, blinker, python-slugify, speedparser, feedparser, restea, arrow, Unipath, python-instagram,
[localhost] local: rsync --delete -pthr /mnt/local/tmp/deploy-2016-01-21-16-20-47-roar-earthables-escobar/templates/dynamic_content/dynamic_content.xsd rebelmouse@wfe-test2:/home/rebelmouse/rebelmouse/templates/dynamic_content/dynamic_content.xsd
[localhost] local: test -d /mnt/local/tmp/deploy-2016-01-21-16-20-47-roar-earthables-escobar/templates/email/users/whitelabel/ && echo "True" || echo "False"
[localhost] local: rsync --delete -pthr /mnt/local/tmp/deploy-2016-01-21-16-20-47-roar-earthables-escobar/templates/email/users/whitelabel/* rebelmouse@wfe-test2:/home/rebelmouse/rebelmouse/templates/email/users/whitelabel/
[localhost] local: test -f /mnt/local/tmp/deploy-2016-01-21-16-20-47-roar-earthables-escobar/templates/dynamic_content/html5.xsd && echo "True" || echo "False"
[localhost] local: rsync --delete -pthr /mnt/local/tmp/deploy-2016-01-21-16-20-47-roar-earthables-escobar/templates/dynamic_content/html5.xsd rebelmouse@wfe-test2:/home/rebelmouse/rebelmouse/templates/dynamic_content/html5.xsd
[localho
(rebelmouse)escobar@beta1:~/rebelmouse$ git diff
diff --git a/engine/unitedbmb/templates/dynamic_content/tagpage.xml b/engine/unitedbmb/templates/dynamic_content/tagpage.xml
index 3f18cac..4af73e7 100644
--- a/engine/unitedbmb/templates/dynamic_content/tagpage.xml
+++ b/engine/unitedbmb/templates/dynamic_content/tagpage.xml
@@ -7,7 +7,7 @@
<div class="col12">
<div class="grid">
<div class="results-for">
- <h2 class="tag-title"><tag_name/></h2>
Traceback (most recent call last):
File "/mnt/local/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 113, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "./community/views/frontpage.py", line 311, in tag_page
return renderer.tag_page(site.name, site.parent_id, tag_name)
File "./community/views/renderers/roar.py", line 66, in tag_page
skeleton = dynamic_content.load_skeleton(self.request, 'tagpage.xml')
diff --git a/engine/unitedbmb/templates/dynamic_content/search.xml b/engine/unitedbmb/templates/dynamic_content/search.xml
index 4f01464..2ac3769 100644
--- a/engine/unitedbmb/templates/dynamic_content/search.xml
+++ b/engine/unitedbmb/templates/dynamic_content/search.xml
@@ -8,7 +8,11 @@
<div class="grid">
<form action="/core/search/" class="results-for">
<span class="results-title">Results for: </span>
- <input name="q" type="text" placeholder="Search" value="{{search_phrase}}" autocomplete="off" />
+ <input name="q" type="text" placeholder="Search" autocomplete="off">
diff --git a/rebelmouse/middleware.py b/rebelmouse/middleware.py
index 9367d90..b95dad2 100644
--- a/rebelmouse/middleware.py
+++ b/rebelmouse/middleware.py
@@ -277,8 +277,7 @@ class WhitelabelRedirect(object):
class HTTPStatusCodeMiddleware(object):
def process_view(self, request, *args):
- if 'http_status_code_500' in request.COOKIES:
- raise Exception('Test exception')
(rebelmouse)escobar@beta1:~/rebelmouse$ git commit -a
checking file 3partyapi/urls.py
checking file 3partyapi/views.py
checking file all_posts/views.py
checking file amp/utils.py
checking file analytics/utils.py
checking file api/views.py
checking file bookmarklet/views.py
checking file community/admin.py
checking file community/comments/utils.py
checking file users/utils.py
Running "mocha_phantomjs:all" (mocha_phantomjs) task
․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․
․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․
․․․․-----events------ {}
․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․
122 passing (437ms)