Open adriatic opened 2 years ago
I believe that my explanation about the redundancy of the command yarn rw prisma db seed redundant
in the text:
git clone https://github.com/redwoodjs/redwood-tutorial
cd redwood-tutorial
yarn install
yarn rw prisma migrate dev
yarn rw prisma db seed
yarn rw dev
in the Setup section has been validated many times in the last couple of years. Taking the liberty that all bugs are worth fixing (otherwise the discoverers of minor bugs will get depressed and not report them) I would suggest addressing such reports.
There are several other issues like "bring the tutorial to RW r.x" that were addressed log time ago.
Added on Jan 22, 2023
Seeing that this is still an open issue (most likely because it is trivial and I did not close it already), I wanted to verify this problem report using today's version of RW (see the list of files below), I believe that my original report was correct and that the sequence of commands defined in Setup"
Please verify and close either way (eventually remove the line
yarn rw prisma db seed
from Setup instructionsMy final report
The following instructions
have a redundant command
yarn rw prisma db seed
, because the execution ofyarn rw prisma migrate dev
"internally" invokes the seed commandyarn rw exec seed
;Definition of my context
Added later
Please ignore this issue (delete it) - I proved to myself that both instructions
are needed.
Summary
The command
yarn rw prisma migrate dev
implicitly includes the action caused by the following command (yarn rw prisma db seed
).The tutorial section using-the-example-repo explains the need to run the following list of six commands;
needed to make the clone of the Redwood Blog application complete (up to the functionality of the first four chapters of the RedwoodJS Tutorial Application.
The claim written as a title of this issue (Command
yarn rw prisma db seed
redundant) is easily verified by inspecting the log of theyarn rw prisma migrate dev
command (see below)