Skip to content
This repository has been archived by the owner on Mar 22, 2018. It is now read-only.

cccc/media-frontend

Repository files navigation

media-frontend

media.ccc.de webfrontend

Install

Ruby Version

ruby 2.1

Instructions

The logo filter requires graphicmagic

aptitude install graphicsmagick

Install required ruby packages with bundler:

gem install bundler
bundle install

Create config file

cp nanoc.yaml.example nanoc.yaml

Database Creation

Import a database dump

zcat testdata.sql.gz | sqlite3 development.sqlite3

Nanoc

Nanoc is a static site generator

Compile static pages

nanoc compile

Start a webserver to view pages in a browser

nanoc view

Watch output directory for changes

guard

JRuby

export JRUBY_OPTS="--2.0 -J-Xmn512m -J-Xms2048m -J-Xmx2048m -J-server"

~/.jrubyrc

compat.version=2.0