From 47d742087ddc95f90485aefcbccc34e2f5ef3a98 Mon Sep 17 00:00:00 2001 From: masq Date: Sun, 17 Aug 2025 22:00:18 +0200 Subject: [PATCH] Makefile : add make prod --- Makefile | 3 +++ pelicanconf.py | 4 ++-- publishconf.py | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index cf5534d..c9e3aa7 100644 --- a/Makefile +++ b/Makefile @@ -71,5 +71,8 @@ devserver-global: publish: "$(PELICAN)" "$(INPUTDIR)" -o "$(OUTPUTDIR)" -s "$(PUBLISHCONF)" $(PELICANOPTS) && cd theme && make +prod: + ssh www-git@www.freepinc.dev "cd m34f.ptrs.top && make publish" + .PHONY: html help clean regenerate serve serve-global devserver devserver-global publish diff --git a/pelicanconf.py b/pelicanconf.py index a2b6359..bbb3775 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -57,12 +57,12 @@ DISPLAY_PAGES_ON_MENU = True I18N_SUBSITES = { 'fr': { - 'SITEURL': 'http://127.0.0.1:8000/fr/', + 'SITEURL': SITEURL + '/fr/', 'LOCALE': 'fr_FR.UTF-8', 'THEME_STATIC_DIR': '../theme', }, 'en': { - 'SITEURL': 'http://127.0.0.1:8000/en/', + 'SITEURL': SITEURL + '/en/', 'LOCALE': 'en_US.UTF-8', 'THEME_STATIC_DIR': '../theme', } diff --git a/publishconf.py b/publishconf.py index 16a0503..1a924fc 100644 --- a/publishconf.py +++ b/publishconf.py @@ -8,7 +8,7 @@ sys.path.append(os.curdir) from pelicanconf import * # If your site is available via HTTPS, make sure SITEURL begins with https:// -SITEURL = "" +SITEURL = "https://m34f.ptrs.top" RELATIVE_URLS = False FEED_ALL_ATOM = "feeds/all.atom.xml" @@ -19,4 +19,4 @@ DELETE_OUTPUT_DIRECTORY = True # Following items are often useful when publishing # DISQUS_SITENAME = "" -# GOOGLE_ANALYTICS = "" \ No newline at end of file +# GOOGLE_ANALYTICS = ""