Leon4gr45 commited on
Commit
b7e35ae
·
verified ·
1 Parent(s): 4fdaf19

Upload Agent.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. Agent.md +9 -6
Agent.md CHANGED
@@ -1,4 +1,4 @@
1
- # Deployment Agent Guidelines
2
 
3
  This document details the configuration, architecture, and deployment procedures for the **SyncUsers & NovaAct Space Application**.
4
 
@@ -8,8 +8,8 @@ This document details the configuration, architecture, and deployment procedures
8
 
9
  ### Target Space
10
  - **Profile:** `Leon4gr45`
11
- - **Space:** `nova-header-nav`
12
- - **Target URL:** `https://huggingface.co/spaces/Leon4gr45/nova-header-nav`
13
  - **Port:** `7860`
14
 
15
  ### Deployment SDK
@@ -31,7 +31,7 @@ The space exposes the following functional REST API endpoints.
31
  #### /api-docs
32
  - **Method:** GET
33
  - **Purpose:** Documents all functional server endpoints in OpenAPI format.
34
- - **Location:** `https://Leon4gr45-nova-header-nav.hf.space/api-docs`
35
 
36
  ### Functional Endpoints
37
 
@@ -75,8 +75,11 @@ The space exposes the following functional REST API endpoints.
75
  ### Build Failures: VITE CLI Not Found
76
  - **Symptoms:** `Cannot find module '/app/node_modules/dist/node/cli.js' imported from /app/node_modules/.bin/vite`
77
  - **Cause:** Local host's `node_modules` gets copied into build container context overriding container-specific packages.
78
- - **Resolution:** A `.dockerignore` file containing `node_modules` must exist in the root of the upload repository.
 
 
 
79
 
80
  ### Local Testing
81
- - Start the server using: `node server.cjs`
82
  - Run Playwright E2E verification using: `npx playwright test`
 
1
+ # SyncUsers & NovaAct Space Deployment Guidelines
2
 
3
  This document details the configuration, architecture, and deployment procedures for the **SyncUsers & NovaAct Space Application**.
4
 
 
8
 
9
  ### Target Space
10
  - **Profile:** `Leon4gr45`
11
+ - **Space:** `nova-test`
12
+ - **Target URL:** `https://huggingface.co/spaces/Leon4gr45/nova-test`
13
  - **Port:** `7860`
14
 
15
  ### Deployment SDK
 
31
  #### /api-docs
32
  - **Method:** GET
33
  - **Purpose:** Documents all functional server endpoints in OpenAPI format.
34
+ - **Location:** `https://Leon4gr45-nova-test.hf.space/api-docs`
35
 
36
  ### Functional Endpoints
37
 
 
75
  ### Build Failures: VITE CLI Not Found
76
  - **Symptoms:** `Cannot find module '/app/node_modules/dist/node/cli.js' imported from /app/node_modules/.bin/vite`
77
  - **Cause:** Local host's `node_modules` gets copied into build container context overriding container-specific packages.
78
+ - **Resolution:** Ensure node_modules are deleted from the repo or excluded from upload. A `.dockerignore` file containing `node_modules` must exist in the root of the upload repository.
79
+
80
+ ### Emptying Target Space before Deployment
81
+ - Always empty the Hugging Face Space of pre-existing folders/files that do not belong to the project before uploading. This can be done using `huggingface_hub` Python package and `delete_folder` or `delete_file` methods.
82
 
83
  ### Local Testing
84
+ - Start the server using: `node server.cjs` (from UserSync directory)
85
  - Run Playwright E2E verification using: `npx playwright test`