Makefile : add make prod

This commit is contained in:
masq 2025-08-17 22:00:18 +02:00
parent ba1a2aa817
commit 47d742087d
Signed by: masq
GPG Key ID: 35A0D64DDE13B10F
3 changed files with 7 additions and 4 deletions

View File

@ -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

View File

@ -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',
}

View File

@ -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 = ""
# GOOGLE_ANALYTICS = ""