From 506f80c79fe24db016dcf3552c022cd82b3e13fb Mon Sep 17 00:00:00 2001 From: Kaitlyn Parkhurst Date: Sun, 30 Oct 2022 21:44:20 -0700 Subject: [PATCH] Updates. --- Web/lib/MJB/Web.pm | 6 +++--- Web/lib/MJB/Web/Controller/Blog.pm | 3 --- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Web/lib/MJB/Web.pm b/Web/lib/MJB/Web.pm index 9ce02ae..5872b47 100644 --- a/Web/lib/MJB/Web.pm +++ b/Web/lib/MJB/Web.pm @@ -24,10 +24,10 @@ sub startup ($self) { $self->helper( jekyll => sub ($c, $domain) { return MJB::Backend::Jekyll->new( - root => '/home/manager/mjb/Web/repos', # Make a config option. + root => '/home/manager/mjb/Web/repos', domain => $domain, - init_from => 'https://store.myjekyllblog.com/symkat/symkat.jekyllblog.com.git', - repo => 'git@store.myjekyllblog.com:mjb/' . $domain . '.git', + init_from => $c->config->{jekyll_init_repo}, + repo => $c->config->{store_repo_base} . "$domain.git", ); }); diff --git a/Web/lib/MJB/Web/Controller/Blog.pm b/Web/lib/MJB/Web/Controller/Blog.pm index 3ecb26f..9de1be6 100644 --- a/Web/lib/MJB/Web/Controller/Blog.pm +++ b/Web/lib/MJB/Web/Controller/Blog.pm @@ -64,9 +64,6 @@ sub do_create ($c) { # Choose a web server to deploy to return if $c->stash->{errors}; - $domain = $domain ? $domain : $subdomain . '.' . $c->config->{hosted_domain}; - - # Configure DNS to point to the blog # Schedule a job to deploy the website