Нет описания
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
Michael Weimann 294a2ff8b0 Removes less from docker (#5) 5 месяцев назад
status change ignoring and keeping of folders to prevent dirty directories when dealing with the fsfe-website git and its .gitignore 1 год назад
.gitignore Add a docker dev setup (#3) 7 месяцев назад
Dockerfile Removes less from docker (#5) 5 месяцев назад
LICENSE adding README and license 3 лет назад
README.md Add a docker dev setup (#3) 7 месяцев назад
config.cfg.docker Add a docker dev setup (#3) 7 месяцев назад
config.cfg.sample fix paths 1 год назад
create-mime.assign.pl initial commit 3 лет назад
docker-cmd.sh Removes less from docker (#5) 5 месяцев назад
docker-compose.yml Add a docker dev setup (#3) 7 месяцев назад
docker-setup.sh Replace /bin/bash with /usr/bin/env bash (#4) 6 месяцев назад
fsfe-preview.sh Symlink instead of copy static files to destination 6 месяцев назад
lighttpd-fsfe.conf.sample fix paths 1 год назад
pywebserver-fsfe.py adding option to use python simplehttp webserver module which doesn't require users to install lighttpd 3 лет назад


FSFE Website Local Build

This is a collection of scripts, tools and configuration files necessary to build fsfe.org websites locally.

Full instructions can be found in FSFE’s wiki: https://wiki.fsfe.org/TechDocs/Mainpage/BuildLocally

Docker based development environment

For convenience local development you may want to use the docker contaienr provided by this repo.

The container contains everything you need to work on the website including serving a preview, building the static pages and the CSS files.


Website Dev Instructions

Initial set up

Just run the following command for the initial setup:


⚠ The command may run some hours, since it does the initial full build of the website.


Spin up the container (⚠ takes some minutes):

docker-compose up

The website should now be available on your machine under

Build a single page after changes (e.g. index.de.xhtml):

docker exec \
    --workdir /fsfe-local-build/fsfe.org \
    fsfe-local-build \
    bash ../fsfe-preview.sh ../fsfe-website/index.de.xhtml

Style modifications in fsfe-website/look trigger a re build of the styles. After modifications a page reload shoud show the changes.