-
Notifications
You must be signed in to change notification settings - Fork 8
feat: Match deployment layout to URL-structure so the Fastify server can be replaced with a simple server; Simplify deployment docs. #54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
6d9fc3e
1037f57
3ce3ddc
fb0254d
3efcfaf
fe97bb6
656a1ce
bc38c92
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,9 +2,9 @@ | |
|
|
||
| A deployment of YScope docs includes both the current site and the sites of several other YScope | ||
| repos and their release versions, complicating the build and deployment processes. The end goal is | ||
| to use a single `node` process to serve each site at a different URL prefix (e.g., CLP at | ||
| `/clp/main` and clp-ffi-py at `/clp-ffi-py/main`). We also want the layout on disk to be predictable | ||
| so that we can use a simple config file to configure all the sites that need to be served. | ||
| to use a single webserve to serve each site at a different URL prefix (e.g., CLP at `/clp/main` and | ||
| clp-ffi-py at `/clp-ffi-py/main`). We also want the layout on disk to be predictable so that we can | ||
| use a simple config file to configure all the sites that need to be served. | ||
|
|
||
| One approach would be to build all the sites using Task and then assemble them into a single | ||
AVMatthews marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| deployment. However, since each site (and version) might have different build dependencies, we can't | ||
|
|
@@ -15,23 +15,10 @@ expected location. | |
| Until those workflows are ready, we will deploy by building all the sites individually and | ||
| assembling them into a single deployment. | ||
|
|
||
| ## Deployment structure | ||
| ## Adding new projects | ||
|
|
||
| An example of a deployment's structure on disk and the corresponding URL paths should is as follows: | ||
|
|
||
| | Project | On-disk path | URL prefix | | ||
| |---------------------|-----------------------------------------|--------------------| | ||
| | yscope-docs | build/html | / | | ||
| | clp @ main | build/clp-main/build/docs/html | /clp/main | | ||
| | clp-ffi-py @ main | build/clp-ffi-py-main/build/docs/html | /clp-ffi-py/main | | ||
| | clp-ffi-py @ v0.0.9 | build/clp-ffi-py-v0.0.9/build/docs/html | /clp-ffi-py/v0.0.9 | | ||
|
|
||
| This assumes the deployment is in `build`. Essentially, for each project besides yscope-docs, the | ||
| build output should be in `build/<project>-<version>/build/docs/html`. | ||
|
|
||
| Each project and its versions should be listed in `conf/projects.json` so that the server knows all | ||
| the sites it needs to render. The server will combine the config in `projects.json` with the build | ||
| directory's path to generate routes similar to the previous table. | ||
| Each project and its versions should be listed in `conf/projects.json` so that | ||
| `scripts/download-projects.sh` can download the repos and check out the correct versions. | ||
coderabbitai[bot] marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ## Step-by-step guide | ||
AVMatthews marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
|
|
@@ -63,4 +50,4 @@ directory's path to generate routes similar to the previous table. | |
|
|
||
| The tar will be written to `build/yscope-docs-release.tar.gz`. | ||
| 5. Upload the tar to the deployment server and untar it. | ||
| 6. Follow the instructions in `yscope-docs-release/server/README.md` to start the server. | ||
| 6. Move the extracted content to wherever the webserve expects it to be. | ||
|
||
This file was deleted.
This file was deleted.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.