Skip to content

Commit c0aa658

Browse files
committed
record the latest updated block and publish to website, fixes #3
1 parent f48a21f commit c0aa658

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ time zsh build-square.sh && rm -rf build/squares-rgb
4343
Deploy generally looks like this.
4444

4545
```sh
46-
cp build/wholeSquare.png ~/Sites/tenthousandsu.com/build/wholeSquare.png
47-
cp build/squarePersonalizations.json ~/Sites/tenthousandsu.com/build/squarePersonalizations.json
46+
cp build/wholeSquare.png build/squarePersonalizations.json build/loadedTo.json ~/Sites/tenthousandsu.com/build
4847
cp build/metadata/*.json build/metadata/*.svg ~/Sites/tenthousandsu.com/erc721
4948
cd ~/Sites/tenthousandsu.com
5049
git status # Manually do a sanity check git diff # Manually do a sanity check

load-blockchain.mjs

+2-1
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,5 @@ for await (const event of personalized) {
162162
// Save checkpoint /////////////////////////////////////////////////////////////
163163
state.startBlock = endBlock;
164164
fs.writeFileSync("build/squarePersonalizations.json", JSON.stringify(state.squarePersonalizations));
165-
fs.writeFileSync("build/resume.json", JSON.stringify(state));
165+
fs.writeFileSync("build/resume.json", JSON.stringify(state));
166+
fs.writeFileSync("build/loadedTo.json", JSON.stringify(state.startBlock));

0 commit comments

Comments
 (0)