Skip to content

Commit 3f4730f

Browse files
authored
Update PM2 to use runt from workspace (#532)
1 parent 6bc3f7b commit 3f4730f

7 files changed

Lines changed: 7 additions & 168 deletions

File tree

AGENTS.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,6 @@ const titleMetadata = useQuery(
308308
│   ├── start-runt-dev.sh
309309
│   ├── test-api-key-flow.sh
310310
│   ├── test-api-keys.sh
311-
│   ├── use-runt.sh
312-
│   └── watch-script.cjs
313311
├── src
314312
│   ├── auth
315313
│   │   ├── AuthGuard.tsx

README.md

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -147,56 +147,6 @@ commands.
147147
**Multi-language Support** - The runtime architecture already supports other
148148
languages with custom runtime agents. We just need UI updates!
149149

150-
## Local Development
151-
152-
### Schema Linking for Development
153-
154-
The `@runtimed/schema` package provides shared types and events for Anode. Use the appropriate linking method based on your development phase:
155-
156-
**Production (JSR Package)**:
157-
158-
```bash
159-
pnpm use-runt prod
160-
```
161-
162-
Should update package.json to:
163-
164-
```json
165-
"@runtimed/schema": "^0.1.0"
166-
```
167-
168-
**Testing PR Changes (GitHub Reference)**:
169-
170-
```bash
171-
pnpm use-runt main
172-
```
173-
174-
Should update package.json to use the hash of whatever is on `main` in the `runt` package:
175-
176-
```json
177-
"@runtimed/schema": "workspace:*"
178-
```
179-
180-
**Local Development (File Link)**:
181-
182-
```bash
183-
pnpm use-runt local
184-
```
185-
186-
Should update packages.json to use the local version of `runt`:
187-
188-
```json
189-
"@runtimed/schema": "workspace:*"
190-
```
191-
192-
**To switch between modes:**
193-
194-
1. Update `package.json` with the appropriate schema reference
195-
2. Run `pnpm install` to update dependencies
196-
3. Restart UI development server (`pnpm dev`)
197-
198-
**Important**: Ensure both repositories use compatible schema versions. Type errors usually indicate schema mismatches.
199-
200150
## 🚀 Groq AI Integration
201151

202152
Anode supports **Groq** as a first-class AI provider alongside OpenAI and Ollama, offering high-speed inference with advanced models.

ecosystem.config.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,25 @@
99
}
1010
},
1111
{
12-
"name": "iframe-outputs",
12+
"name": "runtime",
1313
"script": "pnpm",
14-
"args": "run dev:iframe",
14+
"args": "run dev:runtime",
1515
"env": {
1616
"NODE_ENV": "development"
1717
}
1818
},
1919
{
20-
"name": "sync",
20+
"name": "iframe-outputs",
2121
"script": "pnpm",
22-
"args": "run dev:sync",
22+
"args": "run dev:iframe",
2323
"env": {
2424
"NODE_ENV": "development"
2525
}
2626
},
2727
{
28-
"name": "watcher",
29-
"script": "node",
30-
"args": "scripts/watch-script.cjs",
28+
"name": "sync",
29+
"script": "pnpm",
30+
"args": "run dev:sync",
3131
"env": {
3232
"NODE_ENV": "development"
3333
}

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"dev:runtime": "./scripts/dev-runtime.sh",
2020
"build:iframe": "cd iframe-outputs && vite build",
2121
"build": "vite build --mode development",
22-
"use-runt": "./scripts/use-runt.sh",
2322
"build:preview": "vite build --mode preview",
2423
"build:production": "./scripts/optimize-build.sh && vite build --mode production",
2524
"build:production:fast": "vite build --mode production",

scripts/open-browser.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
# Source the .env file to get VITE_RUNTIME_COMMAND
2-
if [ -f ".env" ]; then
3-
echo "Sourcing .env file"
4-
source .env
5-
fi
6-
7-
# 🚨 IMPORTANT: We're overriding the runtime command here to avoid it breaking by accident
8-
export VITE_RUNTIME_COMMAND="deno run --allow-all --unstable-broadcast-channel --env-file=../anode/.env ../runt/packages/pyodide-runtime-agent/src/mod.ts"
91
export DEV_PORT=${ANODE_DEV_SERVER_PORT:-5173}
102
export NOTEBOOK_ID=$(openssl rand -hex 8)
113

scripts/start-runt-dev.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@
44
DEV_PORT=${ANODE_DEV_SERVER_PORT:-5173}
55
export ANODE_DEV_SERVER_PORT=$DEV_PORT
66

7-
# export VITE_RUNTIME_COMMAND="deno run --allow-all --unstable-broadcast-channel --env-file=../anode/.env ../runt/packages/pyodide-runtime-agent/src/mod.ts"
8-
9-
# Use runt local
10-
echo "🔄 Using runt local..."
11-
pnpm use-runt local
12-
137
echo "🚀 Starting Anode development environment with PM2 (single-server setup)..."
148
echo "📡 Using port: $DEV_PORT"
159

scripts/watch-script.cjs

Lines changed: 0 additions & 94 deletions
This file was deleted.

0 commit comments

Comments
 (0)