If a question allows chasing down the ratholes - that is what will happen. For example: instead of asking a very specific question, I wrote the new topic under the title defined as a statement - not a question (see below)
Instead, I should have asked:
How to restore RW app database
Realizing the question is very incomplete, I will follow up with the description of the process that led me to this new question.
While testing the accuracy and completeness of the Tutorial I, I would add the verified sections to my repository on Github, planning to create my own copy of the tutorial code, which I plan to use for my slowly coming document on Windows-specific aspects of RedwoodJS applications development.
Halfway through this exercise, I decided to clone my Tutorial app and verify that it behaves correctly. To my surprise, I saw this:
Note that the original app being built step by step works flawlessly
Look at the
dev.db database (original and clone) tells a lot:
While running the Tutorial step by step, editing code, and running generators, the database of the original application was “built” by running data migrations.
In order to run the cloned Tutorial app, I just did:
yarn install yarn rw dev
where I was assuming that
yarn rw dev would invoke the needed data migration (it’s is just one in this case).
- Is the above issue a bug or a feature?
- If it is a feature, could a paragraph’s worth of description and instructions what needs to be done to make the clone “complete” be added to the tutorial ?
- Am I the only one that got himself in this trouble?