A repository to host static websites to demonstrate my Bolt CMS themes.
(Re)Install Bolt CMS
php composer.phar update
php app/nut cache:clear
php app/nut database:update
We used znegva:password as login for the database in this repository.
after initial git pull
git submodule update --init --recursive
Update submodules (our themes)
git submodule update --recursive --remote
run the Bolt-server
make serve_bolt
on other terminal: create the static mirror site inside of the tmp-directory
make mirror_to_tmp
This calls wget and creates a mirror inside of /tmp
. We assume our Bolt server is reachable at 0.0.0.0:8000
!
Since wget does rename some jpg
to jpgg
inside of srcset
for unknown reasons we need to rerename them...
Wget also does not copy resources specified by untypical attributes, since the gpx-feature uses such an attribute to define the gpx-file we need to copy this file by hand!
All this is done inside of make mirror_to_tmp
.
preview mirror inside tmp To quickcheck if mirroring was successful we can start a simple webserver!
make serve_tmp
copy to docs
directory
When your mirror looks fine it can be copied to its own subdir inside of the docs
directory.
make use_tmp_as_hyde_for_bolt_mirror
The docs
-dir will be be published using github-pages.