Browse Source

check for siteurl override in environment

pull/1/head
Annika Backstrom 1 year ago
parent
commit
630771dc26
4 changed files with 6 additions and 2 deletions
  1. 1
    0
      .gitignore
  2. 1
    0
      docker-compose.yml
  3. 3
    1
      pelicanconf.py
  4. 1
    1
      publishconf.py

+ 1
- 0
.gitignore View File

@@ -1,5 +1,6 @@
output/*
cache
*.pyc
.env
assets/css/main.css
assets/css/main.css.map

+ 1
- 0
docker-compose.yml View File

@@ -4,6 +4,7 @@ services:
pelican:
build: .
image: images.abackstrom.com/pelican
env_file: .env
working_dir: /sixohthree.com
volumes:
- ./:/sixohthree.com

+ 3
- 1
pelicanconf.py View File

@@ -6,10 +6,12 @@ import calendar
from subprocess import check_output
from os.path import basename

import os

AUTHOR = u'Annika Backstrom'
SITENAME = u'sixohthree.com'
SITENAME_SHORT = u'603'
SITEURL = '/'
SITEURL = os.environ.get("PELICAN_SITEURL", "/")

ENVIRONMENT = 'development'


+ 1
- 1
publishconf.py View File

@@ -5,7 +5,7 @@ import sys
sys.path.append('.')
from pelicanconf import *

SITEURL = 'https://sixohthree.com'
SITEURL = os.environ.get("PELICAN_SITEURL", "https://sixohthree.com")
FEED_DOMAIN = SITEURL

ENVIRONMENT = 'production'

Loading…
Cancel
Save