![]() |
пре 5 месеци | |
---|---|---|
status | пре 1 година | |
.gitignore | пре 7 месеци | |
Dockerfile | пре 5 месеци | |
LICENSE | пре 3 година | |
README.md | пре 7 месеци | |
config.cfg.docker | пре 7 месеци | |
config.cfg.sample | пре 1 година | |
create-mime.assign.pl | пре 3 година | |
docker-cmd.sh | пре 5 месеци | |
docker-compose.yml | пре 7 месеци | |
docker-setup.sh | пре 6 месеци | |
fsfe-preview.sh | пре 6 месеци | |
lighttpd-fsfe.conf.sample | пре 1 година | |
pywebserver-fsfe.py | пре 3 година |
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
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.
Just run the following command for the initial setup:
./docker-setup.sh
⚠ 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 http://127.0.0.1:8000/.
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.