Add local dev command to run backend and plugin#36
Conversation
|
After spending some time with local dev setup on CRC, I'm rethinking the very simple approach of separate command. I see it needs to be properly wired into local dev loop. |
twoGiants
left a comment
There was a problem hiding this comment.
Nice, going into the right direction! I'd just move it to the init script. See my comments below.
There was a problem hiding this comment.
We're having an init.sh script which starts everything. This script won't work when init was run before, the ports are the same.
Maybe you can wire it all up in the init.sh script, so the pages assets are build every time we start the development environment?
| @@ -55,7 +55,9 @@ Available image tags are listed in the [container registry](https://github.com/f | |||
| In one terminal window, run: | |||
There was a problem hiding this comment.
Can you update the entire Option 1 (rename to Setup) section to say that init.sh should be used to start the dev env?
A few more things:
- Remove the sections:
#### Running start-console with Apple silicon and podmanOption 2: ...
- Add a small section in the Readme telling how to view the github pages locally.
- Add
goandhelmto the prerequisites. - You could make the
plugin.yamlgeneration optional in theinit.shscript, thengoandhelmwill also be optional.
| /bin | ||
| pages/plugin.yaml | ||
| /public | ||
| backend/main |
There was a problem hiding this comment.
You probably should ignore those too:
backend/static/plugin.yamlbackend/static/index.html
There was a problem hiding this comment.
Good catch, it's leftover from my experiments. I'll clean it up.
| /public | ||
| backend/main |
There was a problem hiding this comment.
Just curious, why are those two added?
Changes
@matejvasek @twoGiants is this somewhat coming closer to the idea stated above?