From ad6b5de925f6afa92fc17f04de7be71af5bcc78e Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Sat, 8 Jun 2024 14:55:05 -0700 Subject: internal/lume: push to future-sight Signed-off-by: Xe Iaso --- cmd/xesite/main.go | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'cmd') diff --git a/cmd/xesite/main.go b/cmd/xesite/main.go index 4793f38..a59e690 100644 --- a/cmd/xesite/main.go +++ b/cmd/xesite/main.go @@ -24,6 +24,7 @@ var ( bind = flag.String("bind", ":3000", "Port to listen on") devel = flag.Bool("devel", false, "Enable development mode") dataDir = flag.String("data-dir", "./var", "Directory to store data in") + futureSightURL = flag.String("future-sight-url", "", "URL to use for future sight preview deploys") gitBranch = flag.String("git-branch", "main", "Git branch to clone") gitRepo = flag.String("git-repo", "https://github.com/Xe/site", "Git repository to clone") githubSecret = flag.String("github-secret", "", "GitHub secret to use for webhooks") @@ -54,14 +55,15 @@ func main() { } fs, err := lume.New(ctx, &lume.Options{ - Branch: *gitBranch, - Repo: *gitRepo, - StaticSiteDir: "lume", - URL: *siteURL, - Development: *devel, - PatreonClient: pc, - DataDir: *dataDir, - MiURL: *miURL, + Branch: *gitBranch, + Repo: *gitRepo, + StaticSiteDir: "lume", + URL: *siteURL, + Development: *devel, + PatreonClient: pc, + DataDir: *dataDir, + MiURL: *miURL, + FutureSightURL: *futureSightURL, }) if err != nil { log.Fatal(err) -- cgit v1.2.3