mirror of
https://github.com/cccc/media-frontend
synced 2025-12-09 01:23:58 +01:00
No description
| content | ||
| images | ||
| layouts | ||
| lib | ||
| static | ||
| .gitignore | ||
| config.rb | ||
| Gemfile | ||
| Gemfile.lock | ||
| Guardfile | ||
| Makefile | ||
| nanoc.yaml.example | ||
| README.md | ||
| Rules | ||
| settings.json | ||
| testdata.sql.gz | ||
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