Support #13322
openEditing css in git repository
0%
Description
My docroot points to C:<installdir>\resources and the .css files are served from there. The problem is that a developer can't edit the .css file in C:<git repo>\app\app.css and expect the browser to see the changes by simply refreshing the page with ctrl + F5. The developer always needs to run cmake --build . --target=install or alternatively edit the .css file from C:<installdir>\resources to see the changes. The build step is annoying and slows down the development cycle, and if you edit the .css file from the install dir, you need to remember to copy the changes back to the git repo for the commit. Is there any nice way to allow the developer to edit the .css directly in the git repo and have the browser see the changes with ctrl + F5 only?
While writing this I got the idea to set = and then adding installdir somehow to .gitignore. I don't know if I like this.
Updated by Axel Sjöberg about 2 months ago
*While writing this I got the idea to set installdir = git repo
Updated by Matthias Van Ceulebroeck 1 day ago
- Status changed from New to Resolved
Hey Axel,
sorry for the late reply. As you yourself indicated, you can set installdir = git repo. Or probably better, supply the --docroot {path}
argument to the command to run the application. You can set this {path}
to be a path inside your git repo.
If you do not want to mix the docroot and Wt's resources, there is the additional --resources-dir {path}
argument. This can remain on C:<installdir>\resources
.