... | ... | @@ -39,9 +39,7 @@ The logo lives in `static/logo.png`. Some colors are defined in |
|
|
## Uploading site to the static mirror system
|
|
|
|
|
|
The `status.torproject.org` site currently lives in the [static mirror
|
|
|
system](howto/static-component). Ideally, it would be built through
|
|
|
automated, continuous integration (and maybe GitLab pages), but that
|
|
|
is not currently the case.
|
|
|
system](howto/static-component) and uses the [git-rw repository](https://gitweb.torproject.org/project/web/status-site.git/) which get built via Jenkins once you push to the repo.
|
|
|
|
|
|
You can preview changes by starting a local server:
|
|
|
|
... | ... | @@ -54,10 +52,12 @@ command: |
|
|
hugo
|
|
|
|
|
|
That will create a bunch of (mostly plain HTML) files in
|
|
|
`public/`. This then needs to be uploaded to the static source server
|
|
|
(currently `staticiforme`, but the canonical source is defined in
|
|
|
Puppet, in `modules/roles/misc/static-components.yaml`). This `rsync`
|
|
|
command should be enough:
|
|
|
`public/`.
|
|
|
|
|
|
|
|
|
If git-rw is down, you can login to staticiforme.torproject.org and upload the public folder content under /srv/status.torproject.org/htdocs.
|
|
|
|
|
|
The canonical source for the static websites rotation is defined in Puppet, in `modules/roles/misc/static-components.yaml`). This `rsync` command should be enough:
|
|
|
|
|
|
rsync -rtP public/ anarcat@staticiforme.torproject.org:/srv/status.torproject.org/status-site/public/
|
|
|
|
... | ... | |