Skip to content
Permalink
Browse files
Make nikola auto rebuild correctly
Previously, we tried to execute a command named `build`
instead of `nikola build`, sorry for that.

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jun 12, 2015
1 parent 110ad45 commit 7ca4bf4186ed263a2b495ef9a22dbfa64cf85ac9
Showing 1 changed file with 2 additions and 2 deletions.
@@ -124,12 +124,12 @@ def _execute(self, options, args):
elif pyinotify is None:
req_missing(['pyinotify'], 'use the "auto" command')

self.cmd_arguments = ['build']
self.cmd_arguments = ['nikola', 'build']
if self.site.configuration_filename != 'conf.py':
self.cmd_arguments = ['--conf=' + self.site.configuration_filename] + self.cmd_arguments

# Run an initial build so we are up-to-date
subprocess.call(["nikola"] + self.cmd_arguments)
subprocess.call(self.cmd_arguments)

port = options and options.get('port')
self.snippet = '''<script>document.write('<script src="http://'

0 comments on commit 7ca4bf4

Please sign in to comment.