Skip to content

Instantly share code, notes, and snippets.

View ingenieroariel's full-sized avatar

Ariel Núñez ingenieroariel

View GitHub Profile
import os
import geonode
DEBUG = TEMPLATE_DEBUG = False
MINIFIED_RESOURCES = True
SERVE_MEDIA=False
SITENAME = 'GeoNode'
SITEURL = 'http://geonode.gov.vc/'
import os
import datetime
from collections import defaultdict
from operator import itemgetter
from pprint import pprint as pp
from git import Repo
from unidecode import unidecode
# easy_install boto
# You will also need:
# - A .pem keyfile generated using the Amazon web interface to create new instances
# - The secret and access keys created from the
# The only pre-reqs are having created a keypair (.pem file)
# via the amazon web interface and knowing the AWS key and secret
#
# Usage:
# export AWS_ACCESS_KEY_ID='blahblah'
# export AWS_SECRET_ACCESS_KEY='blebleble'
# easy_install fabric
#
# Usage:
# fab geonode
from fabric.api import env, sudo, run, cd
def setup():
sudo('apt-get -y update')
sudo('apt-get -y dist-upgrade')
sudo('add-apt-repository "deb http://archive.canonical.com/ lucid partner"')