Skip to content

Commit 548c81a

Browse files
tchappuifreezed
authored andcommitted
Removed devserver command from tasks.py. Not portable on windows
1 parent f9e8632 commit 548c81a

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

tasks.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from pelican.server import ComplexHTTPRequestHandler, RootedHTTPServer
1010

1111
CONFIG = {}
12-
CONFIG['basedir'] = (Path(__file__) / '..').resolve()
12+
CONFIG['basedir'] = Path('.')
1313
CONFIG['inputdir'] = CONFIG['basedir'] / 'content'
1414
CONFIG['outputdir'] = CONFIG['basedir'] / 'output'
1515
CONFIG['conffile'] = CONFIG['basedir'] / 'pelicanconf.py'
@@ -85,15 +85,6 @@ def runserver(c):
8585
"""Serve site at http://localhost:8000/"""
8686
serve(c)
8787

88-
@task
89-
def devserver(c):
90-
"""Starts the devserver"""
91-
c.run('echo "Running Pelican DevServer. Press CTRL+C to stop"')
92-
c.run(
93-
'pelican -lr {inputdir} -o {outputdir} -s {conffile} {opts} -p {port}'
94-
.format(**CONFIG)
95-
)
96-
9788
@task
9889
def reserve(c):
9990
"""Builds, then serves"""

0 commit comments

Comments
 (0)