This repository stores some recipes I like in a convenient to access cookbook. I'm making it public so I can access it from anywhere, but this is not an actively maintained or quality-controlled respository.
The following steps can be used to build the website:
- Run "make all"
- Open the server using the link provided by the mkdocs output.
- Use "ctrl + C" to close the server when done.
The following steps will build the website locally. Note, the search functionality will not work when building locally.
- Run "make local"
- Open site/index.html to view the cookbook.
These steps will make your website viewable on your local network from a name like myhost.local
.
- Create apache2 website. Follow this tutorial
- May need to add
sudo ufw allow 'Apache'
to allow access from home network. - Will need to add all the files from
site
to your website, e.g.,sudo cp -r site/* /var/www/home/
- Worth double checking here that it is viewable locally. Can you use the computers IP address for this, or just
localhost
.
- Use
mDNS
to host website over local network. Note, you will need to make theServerName=myhost.local
, wheremyhost
matches thehost-name
in/etc/avahi/avahi-daemon.conf
To automatically enable apache2 on startup, use:
sudo update-rc.d apache2 enable
To disable use:
sudo update-rc.d apache2 disable