Override-based compose, profiles in .env, README
This commit is contained in:
+2
-2
@@ -76,9 +76,9 @@ def new(args: argparse.Namespace) -> None:
|
|||||||
run_copy(template(name), dest, data=data, unsafe=True, defaults=args.defaults, vcs_ref=REF)
|
run_copy(template(name), dest, data=data, unsafe=True, defaults=args.defaults, vcs_ref=REF)
|
||||||
|
|
||||||
dest.mkdir(parents=True, exist_ok=True)
|
dest.mkdir(parents=True, exist_ok=True)
|
||||||
copy("infra", {"layout": "single" if single else "parts", "parts": [] if single else stack})
|
|
||||||
layout = "root" if single else "part"
|
|
||||||
identity = {"project_name": name, "project_slug": slug}
|
identity = {"project_name": name, "project_slug": slug}
|
||||||
|
copy("infra", {"project_name": name, "layout": "single" if single else "parts", "parts": [] if single else stack})
|
||||||
|
layout = "root" if single else "part"
|
||||||
if backend:
|
if backend:
|
||||||
copy(BACKENDS[backend], {**identity, "layout": layout, "serve_spa": serve == "api",
|
copy(BACKENDS[backend], {**identity, "layout": layout, "serve_spa": serve == "api",
|
||||||
"author_name": git_config("user.name"), "author_email": git_config("user.email")})
|
"author_name": git_config("user.name"), "author_email": git_config("user.email")})
|
||||||
|
|||||||
Reference in New Issue
Block a user