mirror of
https://github.com/opentofu/opentofu.org.git
synced 2026-01-11 19:56:26 +00:00
1.9 KiB
1.9 KiB
Stack
Cloning the repository
This repository uses Git submodules to pull in the main OpenTofu repository.
git clone --recurse-submodules git@github.com:opentofu/opentofu.org.git
Oops! I forgot to recurse submodules…
cd opentofu.org
git submodule init
git submodule update
Development
You can either develop locally, or by using a local Docker container.
Option A: Running the dev server locally
You can run the dev server if you have a local Node.js/npm environment installed:
-
Install dependencies:
npm install -
Start the development server:
npm run start -
You can now access the site locally at http://localhost:3000.
Option A: Running the dev server in a container
You can run the dev server in a Docker container with the following command:
docker compose up --build
Troubleshooting
The docs folder does not exist for version "vX.Y"
Error: The docs folder does not exist for version "vX.Y". A docs folder is expected to be found at versioned_docs/version-vX.Y.
Make sure you installed the Git submodules. See above for instructions.
Contributing
When you contribute code to OpenTofu, do not forget to sign off your commits as described here.