Adopt: pass the church's address; Link: the short name is a name
crosscode adopt can only work out the church's address from an events.<address> domain, and the Hub never sent --address, so adopting a site like events-demo.crosscode.co.za failed on the server. The adopt form now asks for the address (required for such domains), the Hub refuses to plan the move without it, and it goes into the job's arguments. Link existing: the short name field and its error say it's a name like `hope`, not a folder. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -111,7 +111,7 @@ export default function InstallsPage() {
|
||||
<p className="text-sm text-slate-500 md:col-span-2">For sites installed by hand or moved with <code>crosscode adopt</code>. Nothing on the server changes; the Hub records the server, folder name and ports (see the server's church.env and frpc.ini).</p>
|
||||
<div><label className="label" htmlFor="l-inst">Install</label><select id="l-inst" className="input" required {...l("installId")}><option value="">Choose…</option>{installs.map(i => <option key={i.id} value={i.id}>{i.customer?.name || i.name} ({i.url})</option>)}</select></div>
|
||||
<div><label className="label" htmlFor="l-srv">Server</label><select id="l-srv" className="input" required {...l("serverId")}><option value="">Choose…</option>{srv.map(s => <option key={s.id} value={s.id}>{s.name}</option>)}</select></div>
|
||||
<div><label className="label" htmlFor="l-short">Short name (its folder in /var/www/sites)</label><input id="l-short" className="input" required {...l("shortName")} /></div>
|
||||
<div><label className="label" htmlFor="l-short">Short name</label><input id="l-short" className="input" required pattern="[a-z][a-z0-9-]{1,30}" placeholder="hope" {...l("shortName")} /><p className="mt-1 text-xs text-slate-500">Just the name, not a path: its folder is /var/www/sites/<name>. A site still in an old folder (/var/www/hope-events) gets that name when you move it onto the monorepo.</p></div>
|
||||
<div className="grid grid-cols-2 gap-2">
|
||||
<div><label className="label" htmlFor="l-web">Web port</label><input id="l-web" className="input" required inputMode="numeric" {...l("webPort")} /></div>
|
||||
<div><label className="label" htmlFor="l-api">API port</label><input id="l-api" className="input" required inputMode="numeric" {...l("apiPort")} /></div>
|
||||
|
||||
Reference in New Issue
Block a user