organized: local dev. -> make serve

online dev. -> make sftp_upload
This commit is contained in:
Dooho Yi 2021-01-16 21:34:38 +09:00
parent a1057e3041
commit 616ed8f90f
3 changed files with 4 additions and 6 deletions

View file

@ -52,7 +52,7 @@ clean:
regenerate: regenerate:
$(PELICAN) -r $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) $(PELICAN) -r $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS)
serve: serve: html
ifdef PORT ifdef PORT
$(PELICAN) -l $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) -p $(PORT) $(PELICAN) -l $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) -p $(PORT)
else else

View file

@ -4,8 +4,7 @@ from __future__ import unicode_literals
AUTHOR = 'D' AUTHOR = 'D'
SITENAME = 'lost|traIn' SITENAME = 'lost|traIn'
SITEURL = 'https://nosignal.hopto.org/site/losttrain' SITEURL = 'http://localhost:8000'
#SITEURL = 'localhost:8000'
PATH = 'content' PATH = 'content'
OUTPUT_PATH = 'public' OUTPUT_PATH = 'public'
@ -51,6 +50,6 @@ PLUGINS = ['assets']
# THEME (custom;originally 'monospace') # THEME (custom;originally 'monospace')
#THEME = "./themes/white" #THEME = "./themes/white"
THEME = "./themes/aurora" #THEME = "./themes/aurora"
#THEME = "./themes/yoshi" THEME = "./themes/yoshi"
#THEME = "./themes/moe-dark" #THEME = "./themes/moe-dark"

View file

@ -11,7 +11,6 @@ sys.path.append(os.curdir)
from pelicanconf import * from pelicanconf import *
SITEURL = '/site/losttrain' SITEURL = '/site/losttrain'
#SITEURL = '/'
RELATIVE_URLS = False RELATIVE_URLS = False
FEED_ALL_ATOM = 'feeds/all.atom.xml' FEED_ALL_ATOM = 'feeds/all.atom.xml'