Skip to content

Commit

Permalink
Make nikola auto rebuild correctly
Browse files Browse the repository at this point in the history
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 7ca4bf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nikola/plugins/command/auto/__init__.py
Expand Up @@ -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://'
Expand Down

0 comments on commit 7ca4bf4

Please sign in to comment.