roc/www/README.md
Jan Van Bruggen 60134855d1
Fix a path typo in www/README
This fixed it for me :)

Signed-off-by: Jan Van Bruggen <JanCVanB@users.noreply.github.com>
2024-05-09 01:42:48 -06:00

900 B

www.roc-lang.org

Prerequisites

  • Linux or MacOS operating system, Windows users can use linux through WSL.
  • Install git
  • Install nix

Building the website from scratch

git clone https://github.com/roc-lang/roc.git
cd roc
nix develop
./www/build.sh
# make the roc command available 
export PATH="$(pwd)/target/release/:$PATH"
bash ./www/build-dev-local.sh

Open http://0.0.0.0:8080 in your browser.

After you've made a change locally

In the terminal where the web server is running:

  1. kill the server with Ctrl+C
  2. re-run the build script
  3. refresh the page in your browser

To view the website after you've made a change, execute:

bash build-dev-local.sh

Open http://0.0.0.0:8080 in your browser.