mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
move headless stuff to tribes/ dir
This commit is contained in:
parent
87e885fe8b
commit
d876a473f6
3 changed files with 7 additions and 3 deletions
|
|
@ -8,8 +8,8 @@
|
|||
"db:export": "deno run -A scripts/db-export.ts",
|
||||
"db:import": "deno run -A scripts/db-import.ts",
|
||||
"db:migrate": "deno run -A scripts/db-migrate.ts",
|
||||
"headless:setup": "deno run -A scripts/headless/setup.ts",
|
||||
"headless:uploader-config": "deno run -A scripts/headless/uploader-config.ts",
|
||||
"headless:setup": "deno run -A tribes/setup.ts",
|
||||
"headless:uploader-config": "deno run -A tribes/uploader-config.ts",
|
||||
"nostr:pull": "deno run -A scripts/nostr-pull.ts",
|
||||
"debug": "deno run -A --inspect src/server.ts",
|
||||
"test": "deno test -A --junit-path=./deno-test.xml",
|
||||
|
|
|
|||
|
|
@ -63,11 +63,15 @@ export function parseUploaderConfig(cfg: string) {
|
|||
if (import.meta.main) {
|
||||
const vars: Record<string, string | undefined> = {};
|
||||
|
||||
const domain = await question('input', 'Instance domain? (eg ditto.pub)');
|
||||
const [domain] = Deno.args;
|
||||
if (!domain) {
|
||||
throw new Error('Domain is required!');
|
||||
}
|
||||
|
||||
if (!domain.match(/^(https?):\/\/.+/)) {
|
||||
throw new Error('Domain must begin with http(s)!');
|
||||
}
|
||||
|
||||
vars.DITTO_UPLOADER = await question('list', 'How do you want to upload files?', [
|
||||
'nostrbuild',
|
||||
'blossom',
|
||||
Loading…
Add table
Reference in a new issue