Skip to content

Commit

Permalink
non automatic refresh instructions with Docker in README. (#1198)
Browse files Browse the repository at this point in the history
From issue #515 .
  • Loading branch information
henrik-ch committed Jan 26, 2024
1 parent a64868e commit c0e90b7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,20 @@ Open your browser at: http://localhost:8000/

In order for the browser to automatically refresh, install the [Livereload extension](http://livereload.com/extensions/) for your browser.

If you want to build the site with [Docker] and without automatic refresh, here the steps:
(Works on Windows, MacOS and NixOS with Docker)

In the terminal:
$ docker run -p 8000:8000 -it --name nixos-homepage nixos/nix
# nix-shell -p git
[nix-shell]$ git clone git@github.com:NixOS/nixos-homepage.git
[nix-shell]$ cd nixos-homepage
[nix-shell]$ nix-shell
[nix-shell]$ make
[nix-shell]$ python -m http.server --bind 0.0.0.0

Then browse to http://localhost:8000/ in the browser

Before creating a pull request make sure that `nix-build` runs successfully.

[Docker]: https://docs.docker.com/get-docker/
Expand Down

1 comment on commit c0e90b7

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Published on https://nixos.org as production
🚀 Deployed on https://65b36ce369993e99770642ce--nixos-homepage.netlify.app

Please sign in to comment.