label | icon | author | order | ||||
---|---|---|---|---|---|---|---|
Weekly Setup |
file |
|
-2 |
Each week while the pioneer program is running, the Plutus Pioneer Program repository will be updated. As a consequence, these steps should be executed weekly.
!!! Make sure to have done the first time setup. !!!
1 - Change into the plutus-pioneer-program
directory, then:
git pull
2 - While in the plutus-pioneer-program
directory:
cd ./code/week01
Substitute week01
with the corresponding week you are in.
3 - View the Cabal project file.
less cabal.project
Look for the following lines
source-repository-package
type: git
location: https://github.com/input-output-hk/plutus-apps.git
tag: [long string of letters and numbers]
Copy the tag
value [long string of letters and numbers]
4 - Change back into the plutus-apps
directory, then:
git checkout [tag]
where [tag] is the tag value on your clipboard.
5 - While still in the plutus-apps
directory:
nix-shell
The first time it takes a while (20-30 minutes).
Note: Along the way it will be necessary to start more Nix shells; all of them should be started while in the plutus-apps
directory.
6 - Inside the nix-shell,
cd ../plutus-pioneer-program/code/weeknn
where 'nn' is this week's number. Then
cabal build
The first time it may take a while.
7 - Inside a nix-shell, change back into the plutus-apps
directory, then:
build-and-serve-docs
This builds the haddock documentation, while will be available at http://localhost:8002/haddock/
The first time it may take a while.
Note: Inside the haddock documentation, press command-S to search.
At the end of the week I found it useful to recup hard drive space with
nix-collect-garbage
which I ran while in the plutus-apps
directory.