This repository has various scripts to set up or reconfigure a Metamath website.
Most of the time you don't want a change in this repository. Instead, you'll want to propose a change to one of the Metamath database repositories (usually the set.mm repository), Metamath-related programs such as the metamath-exe repository, or the metamath-website-seed repository.
If you want to propose changes to the basic configuration or execution processes that a Metamath website runs, this is the right repository to change. Please propose a change as a pull request.
This metamath-website-scripts repository contains the scripts and configuration that load the Metamath databases, runs them through Metamath-related programs, and combines them with the metamath-website-seed files to produce the working Metamath website.
If you just want to change the configuration of the existing Metamath website,
and you have the necessary permissions (e.g., David A. Wheeler and
Mario Carneiro), change this repo's "main" branch.
Then log in with ssh root@us.metamath.org
and run (at the home directory /root
):
git pull
./build-system.sh
Here are some of the files you might want to change:
us.metamath.org
- the configuration file for the nginx web server.build-system.sh
- shell script run by root that creates/changes
system configurationregenerate-website.sh
- shell script run by user "generator" every day
to regenerate the website contentsSee INSTALL.md
for installation instructions.
A website's name must be set up with a DNS registrar. If it's *.metamath.org, it must be setup with the DNS registar for metamath.org. (At the time of this writing, we use domainmonger as our registar). We currently have domainmonger set up so any request to "metamath.org" or "www.metamath.org" is redirected to https://us.metamath.org/mm.html, so that people can find the mirrors; we could just redirect to the relevant us.metamath.org page if that would be easier.
These scripts implement the following approach: