2022-09-08 08:26:48 +03:00
|
|
|
# www.roc-lang.org
|
2021-08-04 15:12:57 +03:00
|
|
|
|
2023-11-19 08:29:47 +03:00
|
|
|
## Prerequisites
|
|
|
|
|
|
|
|
- Linux or MacOS operating system, Windows users can use linux through WSL.
|
|
|
|
- Install [git](https://chat.openai.com/share/71fb3ae6-80d7-478c-8a27-a36aaa5ba921)
|
2024-01-31 16:01:22 +03:00
|
|
|
- Install [nix](https://github.com/roc-lang/roc/blob/main/BUILDING_FROM_SOURCE.md#installing-nix)
|
2023-11-19 08:29:47 +03:00
|
|
|
|
|
|
|
## Building the website from scratch
|
|
|
|
|
2022-12-20 22:11:21 +03:00
|
|
|
```bash
|
2023-11-19 08:29:47 +03:00
|
|
|
git clone https://github.com/roc-lang/roc.git
|
|
|
|
cd roc
|
|
|
|
nix develop
|
2022-12-20 22:11:21 +03:00
|
|
|
./www/build.sh
|
2023-11-19 08:29:47 +03:00
|
|
|
# make the roc command available
|
|
|
|
export PATH="$(pwd)/target/release/:$PATH"
|
2024-05-09 10:42:48 +03:00
|
|
|
bash ./www/build-dev-local.sh
|
2023-11-19 08:29:47 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
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
|
|
|
|
bash build-dev-local.sh
|
2022-12-20 22:11:21 +03:00
|
|
|
```
|
2023-11-19 08:29:47 +03:00
|
|
|
Open http://0.0.0.0:8080 in your browser.
|
2022-12-20 22:11:21 +03:00
|
|
|
|
|
|
|
|
|
|
|
|