aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@chimrod.com>2013-05-01 13:19:41 +0200
committerSébastien Dailly <sebastien@chimrod.com>2013-05-01 13:19:41 +0200
commita59aab5a8c8122e13ca8482246437feac536da5b (patch)
treedf7d990985c39be7bc5e2dda4a7595f99046955c
parentdc214056449119b29ad7b19b8d47e81b343ff453 (diff)
Updated publication configuration
-rwxr-xr-xdevelop_server.sh6
-rwxr-xr-xpelicanconf.py3
-rwxr-xr-xpublish.sh2
-rw-r--r--publishconf.py2
4 files changed, 4 insertions, 9 deletions
diff --git a/develop_server.sh b/develop_server.sh
index d49f866..0c40b4e 100755
--- a/develop_server.sh
+++ b/develop_server.sh
@@ -10,8 +10,6 @@ INPUTDIR=$BASEDIR/content
OUTPUTDIR=$BASEDIR/output
CONFFILE=$BASEDIR/pelicanconf.py
-DEVCONF=$BASEDIR/.pelican.py
-
###
# Don't change stuff below here unless you are sure
###
@@ -63,10 +61,8 @@ function shut_down(){
function start_up(){
echo "Starting up Pelican and pelican.server"
- sed -e 's|SITEURL.*|SITEURL=\"http://localhost:8000\"|' -e 's|DISQUS_SITENAME.*||' $CONFFILE > $DEVCONF
-
shift
- $PELICAN --debug --autoreload -r $INPUTDIR -o $OUTPUTDIR -s $DEVCONF $PELICANOPTS &
+ $PELICAN --debug --autoreload -r $INPUTDIR -o $OUTPUTDIR -s $CONFFILE $PELICANOPTS &
pelican_pid=$!
echo $pelican_pid > $PELICAN_PID
cd $OUTPUTDIR
diff --git a/pelicanconf.py b/pelicanconf.py
index 68e654d..4a145e8 100755
--- a/pelicanconf.py
+++ b/pelicanconf.py
@@ -3,7 +3,7 @@
AUTHOR = u'Chimrod'
SITENAME = u'Chimrod'
-SITEURL = 'http://blog.chimrod.com'
+SITEURL = 'http://localhost:8000'
TIMEZONE = 'Europe/Paris'
@@ -31,7 +31,6 @@ ARTICLE_URL = u'{date:%Y}/{date:%m}/{slug}/'
ARTICLE_SAVE_AS = u'{date:%Y}/{date:%m}/{slug}/index.html'
-DISQUS_SITENAME='chimrod'
THEME = 'theme'
TYPOGRIFY = True
diff --git a/publish.sh b/publish.sh
index a11b1b6..70e03dd 100755
--- a/publish.sh
+++ b/publish.sh
@@ -1,5 +1,5 @@
#!/bin/bash
source ~/.virtualenvs/pelican/bin/activate
cd ~/pelican/blog/
-make html
+make publish
rsync -ra --del output/ /home/www/blog-chimrod/
diff --git a/publishconf.py b/publishconf.py
index e48e0d6..77840f3 100644
--- a/publishconf.py
+++ b/publishconf.py
@@ -14,5 +14,5 @@ DELETE_OUTPUT_DIRECTORY = True
# Uncomment following line for absolute URLs in production:
#RELATIVE_URLS = False
-#DISQUS_SITENAME = ""
+DISQUS_SITENAME='chimrod'
#GOOGLE_ANALYTICS = ""