Difference between revisions of "Infrastructure Team/Zamboni"
m (rough draft) |
|||
Line 1: | Line 1: | ||
+ | {{obsolete}} | ||
<noinclude>{{TOCright}}</noinclude> | <noinclude>{{TOCright}}</noinclude> | ||
Latest revision as of 18:02, 1 October 2011
Sourceshttp://git.sugarlabs.org/projects/slo-activities Branches structure:
Install serverNOTE The followed instructions tested on Ubuntu 10.10(Maverick). Install apache, mysql, and -dev packages. sudo aptitude install apache2 libapache2-mod-wsgi mysql-server python-dev libxml2-dev libxslt1-dev libmysqlclient-dev libmemcached-dev Create user mkdir /srv/activities.sugarlabs.org sudo adduser --home /srv/activities.sugarlabs.org/aslo aslo To check out sources you need git and subversion. sudo aptitude install git subversion Checkout our fork. git clone --recursive git://github.com/jbalogh/zamboni.git /srv/activities.sugarlabs.org/zamboni Fetch external dependencies: cd /srv/activities.sugarlabs.org/zamboni git clone --recursive git://github.com/jbalogh/zamboni-lib.git vendor Set up serverSetup apache. Add followed lines to the end of VirtualHost section in /etc/apache2/sites-enabled file: <VirtualHost *:80> # ServerName aslo1.rit.edu WSGIScriptAlias / /srv/activities.sugarlabs.org/zamboni/wsgi/zamboni.wsgi WSGIDaemonProcess zamboni processes=8 threads=1 WSGIProcessGroup zamboni Alias /media "/srv/activities.sugarlabs.org/zamboni/media" <location "/media/"> SetHandler None Order deny,allow Allow from all </location> <Directory /srv/activities.sugarlabs.org/zamboni> Order deny,allow Allow from all </Directory> # <locationmatch "\.(jpg|gif|png)$"> # SetHandler None # </locationmatch> </virtualhost> Setup mysql(you need to enter mysql root password for these commands). mysqladmin -u root password remora mysqladmin -u root -p create remora mysql -u root -p GRANT ALL ON *.* TO 'remora'@'localhost' IDENTIFIED BY 'remora'; exit; To test server create /var/www/site/app/webroot/php.php: <?php phpinfo(); ?> Open http://a.sl.o/php in browser and make sure mysql is enabled. Configure ASLOsettings_local.py $#$#$#$#$#$#$#$#$# from settings import * DEBUG = True TEMPLATE_DEBUG = DEBUG DEBUG_PROPAGATE_EXCEPTIONS = DEBUG
INSTALLED_APPS += ( 'debug_toolbar', 'django_extensions', 'fixture_magic', )
CACHE_BACKEND = 'dummy://' DATABASES = { 'default': { 'NAME': 'zamboni', 'ENGINE': 'django.db.backends.mysql', 'USER': 'zamboni', 'PASSWORD': 'remora', 'OPTIONS': {'init_command': 'SET storage_engine=InnoDB'}, 'TEST_CHARSET': 'utf8', 'TEST_COLLATION': 'utf8_general_ci', }, } LOG_LEVEL = logging.DEBUG HAS_SYSLOG = False
if DEBUG: INTERNAL_IPS = ('127.0.0.1',) MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',) DEBUG_TOOLBAR_CONFIG = { 'HIDE_DJANGO_SQL': False, 'INTERCEPT_REDIRECTS': False, }
SESSION_COOKIE_SECURE = False
CELERY_ALWAYS_EAGER = True
cd /var/www aslo/db-create-stub.sh Open a.sl.o in browser. To login use: login admin@sugarlabs.org password test Optional stepsInstall php-memcache
You should add "extension=memcache.so" to php.ini
TODO |