Commit Graph

71 Commits

Author SHA1 Message Date
7935469776 Refactor app reload logic into dedicated function 2026-05-12 18:29:05 -07:00
b303fa1eef Refactor app reload to handle state transitions 2026-05-12 18:19:23 -07:00
31ca1d9849 Refactor app reload logic into reloadApp function 2026-05-11 15:52:01 -07:00
3743a01c28 Add SERVER_PORT export and fix tunnel port selection 2026-05-11 14:52:44 -07:00
875c89de18 Add app publish/unpublish lifecycle hooks 2026-05-11 14:46:55 -07:00
c0276389eb Add static site support to apps 2026-05-11 14:37:12 -07:00
eb2e5a4436 Add appUrl() helper and x-app-url header 2026-04-04 14:40:07 -07:00
df05cbd3aa Add error handling for lsof and pgrep commands 2026-03-23 16:58:44 -07:00
aebafdf496 Remove package.json requirement, auto-deploy bare repos 2026-03-12 14:45:57 -07:00
b410a74d15 Refactor app building and simplify gitUrl 2026-03-08 23:38:15 -07:00
e0347444aa Add share field to app type and show share button 2026-03-08 23:17:35 -07:00
0af360cef2 Centralize VALID_NAME regex into shared types 2026-03-05 07:45:19 -08:00
e7dd220106 Allow dots in app and repo names 2026-03-04 19:25:51 -08:00
c24c0fac45 Refactor env vars: rename DATA_DIR to DATA_ROOT, add APP_URL 2026-03-01 21:21:23 -08:00
56db56976b re-do the whole thing on git 2026-03-01 13:29:01 -08:00
52cf99b56d Replace global with apps and dashboard app properties 2026-03-01 09:48:36 -08:00
c7f8f09ba9 Add global field to filter tool tabs 2026-03-01 09:35:05 -08:00
87d0ff50c1 Centralize hostname config in shared module 2026-02-25 12:55:41 -08:00
236e8ff38e normalize app names to valid subdomains via toSubdomain utility 2026-02-19 20:04:23 -08:00
4aebd6a087 ensure app data directory exists before spawning process 2026-02-19 19:51:39 -08:00
c5672e57bd cleanup 2026-02-17 14:47:47 -08:00
96083b640f all apps are http apps 2026-02-16 13:25:24 -08:00
86dacb0a74 subdomains 2026-02-15 17:30:41 -08:00
f085d78fc1 fix starting and restarts 2026-02-15 13:51:58 -08:00
6ba3cdaf14 share CLI, persistent tunnels 2026-02-15 10:33:03 -08:00
f3cc26252c better status check 2026-02-15 09:10:04 -08:00
1015e20cf9 [cron] reload jobs on renames/deploys 2026-02-15 08:44:48 -08:00
bf14ba4ba1 new event API 2026-02-15 08:36:58 -08:00
c10ebe3c98 kill old processes on boot 2026-02-13 09:59:20 -08:00
Chris Wanstrath
4a31d7bb69 tunnels 2026-02-12 16:24:45 -08:00
Claude
2f4d609290
Fix app rename failing with "port is taken" error
renameApp() killed the old process with .kill() but didn't wait for it
to actually exit before restarting on the same port. The OS still had
the port bound, causing the new process to fail with "port is taken".

Additionally, the old process's exit handler would fire after the rename
and corrupt the app's state—releasing the new process's port, setting
state to 'invalid', and nullifying the proc reference.

Fix by:
- Making renameApp async and awaiting proc.exited before proceeding
- Guarding the exit handler to bail out when a newer process has taken over

https://claude.ai/code/session_01W9GF8Cy7T6V2rnVcoNd1Nc
2026-02-12 16:13:59 +00:00
Chris Wanstrath
c183fe42e9 set TOES_URL 2026-02-11 16:09:14 -08:00
Chris Wanstrath
d94a4421f9 integrated cron logs, cron cli 2026-02-10 11:12:57 -08:00
891b08ecd8 try to better detect failed process start 2026-02-09 21:32:48 -08:00
7c04aceef9 [cron] setup app env properly when running tasks 2026-02-09 21:17:02 -08:00
d4e8975200 fix emoji updating 2026-02-09 19:48:12 -08:00
Chris Wanstrath
a1aa37297f DATA_DIR 2026-02-09 16:08:44 -08:00
Chris Wanstrath
d6ae39ac15 global env variables 2026-02-09 10:50:21 -08:00
Chris Wanstrath
c224dd25a9 ignore health checks in logs 2026-02-04 16:46:53 -08:00
a396f740a5 health checks 2026-02-04 13:35:38 -08:00
2ef00c9d53 /ok 2026-02-04 09:51:29 -08:00
Chris Wanstrath
52bfa783e1 install current symlink automatically from git 2026-02-02 16:03:32 -08:00
a58c42e0d4 dotenv support 2026-02-01 23:27:22 -08:00
f3040abc5d persistent logs 2026-02-01 22:15:25 -08:00
a81d61f910 simplify server 2026-02-01 21:40:32 -08:00
1fbc7a9858 TOES_URL 2026-02-01 09:09:57 -08:00
a56af4ed47 versions, rollback, clean 2026-01-30 22:13:34 -08:00
a25088e723 /tool redirects 2026-01-30 20:39:01 -08:00
ae38084440 fix iframes, maybe 2026-01-30 18:46:08 -08:00
Chris Wanstrath
bde7a2c287 tools! 2026-01-30 16:59:32 -08:00