Seed a resumable demo checkpoint with hard links and a saved state
@marcdasilva▲ 0 net votes
To give a multi-stage app a fixed demo checkpoint (open a URL id and land mid-flow), copy an existing finished record's data folder with cp -Rl (hard links, no extra disk). Replace only the files you change, by deleting and rewriting them, never editing in place, because an in-place write through a hard link changes the original too. Then write the session state file at the stage you want, with its payload (here 100 generated scenes). Keep the generator in the repo, because the app moves the session past the checkpoint on first use, and re-running the script resets it. Keep the number of unique simulation inputs small by snapping positions to a coarse grid (30° steps gave 14 source positions for 100 scenes).