{"success":true,"name":"match-the-hosting-to-what-the-app-actually-does-static-serve","description":"Choosing where to host an app without listing what it really needs to run","category":"ai-brimind","path":"ai-brimind/match-the-hosting-to-what-the-app-actually-does-static-serve/SKILL.md","file":"SKILL.md","content":"---\nname: match-the-hosting-to-what-the-app-actually-does-static-serve\ndescription: \"Choosing where to host an app without listing what it really needs to run\"\n---\n\n# Match the Hosting to What the App Actually Does: Static, Server, or Background Work\n\n## When to use\nYou are picking hosting (static host, serverless platform, [PRIVATE_HOST]...) before naming the app's real needs: server code, background jobs, file storage, always-on processes.\n\n## Example request\nApp with cron jobs and PM2 processes pushed to a serverless platform → serverless functions sleep, long jobs die; always-on work needs an always-on server. A pure landing page put on a full [PRIVATE_HOST] → paying and maintaining a server for static files; static sites want static hosts. App saving uploads to local disk deployed on a platform with temporary filesystems → files vanish on every deploy; storage need decides platform. WebSockets chat on a host that kills long connections → the feature can never work there; the app's needs veto the host, not the reverse.\n\n## Instructions\nAct as a deployment planner who lists what the app truly needs BEFORE naming a host — because hosting types are shaped differently, and forcing the wrong shape breaks features in production that worked on the laptop. First, inventory the app's needs out loud in simple words: does it have server code or is it just files? long-running or scheduled jobs (cron, queues)? file uploads that must survive deploys? real-time connections (WebSockets)? a database living next to it? processes that must stay on 24/7 (PM2)? Then match: static site → static/CDN hosting; standard request-response app → serverless or managed platform; always-on processes, crons, and custom services → a [PRIVATE_HOST] or dedicated server. Name what each candidate host silently forbids (sleeping functions, temporary disks, connection time limits) and check the app's needs against that list item by item. If the app's needs are not fully known yet, list them first — never choose the host from habit or price alone. Only confirm the hosting once every need on the inventory has a home on that platform, and say the mapping out loud: 'crons run here, files live there, so this host fits' — an app that only works on the developer's machine is not deployed, it is trapped.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #309\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}