Closed tlvu closed 3 years ago
I've updated the README.md to clarify. There is no compile step at all; the site is served directly from the src
folder with no special requirements at all.
For continuous deployment, just do a git pull
and there are no other steps.
The npx http-server
is simply a convenient way of getting a web server up easily, and python –m http.server
from the src
folder would work as well.
@grassick Super! Thanks a lot for the clarification. Makes my job easier now. Linking your commit here for traceability https://github.com/Ouranosinc/PAVICS-landing/commit/7954e9cdb0f57c962496524abe8dc1c5ae9e636d.
In the README https://github.com/Ouranosinc/PAVICS-landing/blob/4df0d47c6ed9a7a43e210a94527765f9846909cc/README.md, it simply says "Run
npx http-server src -c-1
to view, or use any other webserver to serve the contents ofsrc
folder.".npx
command (assume a very minimal Docker image, not a full blown desktop installation). If a Docker already image exists with everything required, please let us know!Also that commands seems to launch a built-in http server.
In a continuous deployment scenario, this git repo will be checkout once, then periodically
git pull
and run that "compile" command to refresh the output.Please update the README or reply here, whatever you think is more appropriate. Trying to automate the continuous deployment to prod using Docker. Thanks !