database removed outside
This commit is contained in:
@@ -31,15 +31,15 @@ Important functions:
|
||||
|
||||
## Generated Files
|
||||
|
||||
- Saved cell YAML: `database/<username>/layout/<project>/<cell>.yml`
|
||||
- Saved cell YAML: `mxpic_EDA_database/<username>/layout/<project>/<cell>.yml`
|
||||
- Path helpers: `user_layout_root`, `project_root`, `cell_file_path`
|
||||
(`backend/server.py` lines 124-137).
|
||||
- Saved layout preview SVG: `database/<username>/layout/<project>/<cell>.svg`
|
||||
- Saved layout preview SVG: `mxpic_EDA_database/<username>/layout/<project>/<cell>.svg`
|
||||
- Path helper: `cell_svg_path` (`backend/server.py` lines 140-142).
|
||||
- Optional route sidecar: `database/<username>/layout/<project>/<cell>.routes.yml`
|
||||
- Optional route sidecar: `mxpic_EDA_database/<username>/layout/<project>/<cell>.routes.yml`
|
||||
- Path helper and writer: `cell_routes_path`, `write_route_points_sidecar`
|
||||
(`backend/server.py` lines 145-175).
|
||||
- Downloadable GDS export: `database/_exports/<uuid>/<project>.gds`
|
||||
- Downloadable GDS export: `mxpic_EDA_database/_exports/<uuid>/<project>.gds`
|
||||
- Created by `create_export_path` (`backend/pdk_access.py` lines 53-59).
|
||||
|
||||
## Build Layout: Click Button -> YAML -> Router GDS -> SVG
|
||||
@@ -170,7 +170,7 @@ Important behavior:
|
||||
- Old exports are cleaned (`backend/server.py` line 781).
|
||||
- The project directory is resolved and validated
|
||||
(`backend/server.py` lines 782-784).
|
||||
- `create_export_path` creates `database/_exports/<uuid>/<project>.gds`
|
||||
- `create_export_path` creates `mxpic_EDA_database/_exports/<uuid>/<project>.gds`
|
||||
(`backend/server.py` line 785, `backend/pdk_access.py` lines 53-59).
|
||||
- `build_project_gds(...)` is called (`backend/server.py` lines 786-792).
|
||||
|
||||
|
||||
@@ -61,9 +61,22 @@ Change these passwords from the dashboard profile panel before regular use.
|
||||
Each user stores projects under:
|
||||
|
||||
```text
|
||||
database/<username>/layout
|
||||
mxpic_EDA_database/<username>/layout
|
||||
```
|
||||
|
||||
Before starting the server, move the existing `database` folder beside the repo
|
||||
and rename it to `mxpic_EDA_database`:
|
||||
|
||||
```text
|
||||
<parent-folder>/
|
||||
mxpic_EDA/
|
||||
mxpic_EDA_database/
|
||||
```
|
||||
|
||||
The backend fails fast if the runtime database folder is missing or still inside
|
||||
the repository. Use `MXPIC_DATABASE_ROOT` only when the database must live in a
|
||||
different external location.
|
||||
|
||||
## Useful environment variables
|
||||
|
||||
```text
|
||||
@@ -72,6 +85,7 @@ MXPIC_PORT=3000
|
||||
MXPIC_DEBUG=0
|
||||
MXPIC_SECRET_KEY=<long random string>
|
||||
MXPIC_COOKIE_SECURE=0
|
||||
MXPIC_DATABASE_ROOT=<path-to-mxpic_EDA_database>
|
||||
MXPIC_PDK_PUBLIC_ROOT=<path-to-public-foundries>
|
||||
MXPIC_PDK_ATLAS_ROOT=<path-to-atlas-foundries>
|
||||
```
|
||||
|
||||
@@ -28,7 +28,7 @@ There are three related but separate data paths.
|
||||
load route defaults, and register Nazca layers/xsections.
|
||||
|
||||
3. Saved project layout YAML
|
||||
- Source: `database/<username>/layout/<project>/<cell>.yml`.
|
||||
- Source: `mxpic_EDA_database/<username>/layout/<project>/<cell>.yml`.
|
||||
- Contains placed component paths and `bundles.*.links[*].xsection`.
|
||||
- Consumed by `mxpic_router` when building SVG preview GDS or downloadable GDS.
|
||||
|
||||
@@ -102,7 +102,7 @@ Detailed path:
|
||||
|
||||
Saved metadata location:
|
||||
|
||||
`database/<username>/layout/<project>/.project.json`
|
||||
`mxpic_EDA_database/<username>/layout/<project>/.project.json`
|
||||
|
||||
Example:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user