Skip to content

Commit

Permalink
Merge pull request #3480 from hiway/fixes-3479
Browse files Browse the repository at this point in the history
fixes #3479
  • Loading branch information
Kwpolska authored Dec 5, 2020
2 parents b997932 + 0e47dae commit 1579ff7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nikola/plugins/command/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ def _execute(self, command, args):
if last_deploy is not None:
last_deploy = dateutil.parser.parse(last_deploy)
clean = False
else:
clean = True

if self.site.config['COMMENT_SYSTEM'] and self.site.config['COMMENT_SYSTEM_ID'] == 'nikolademo':
self.logger.warning("\nWARNING WARNING WARNING WARNING\n"
Expand Down Expand Up @@ -96,6 +98,8 @@ def _execute(self, command, args):
self.logger.info("Successful deployment")

new_deploy = datetime.utcnow()
if last_deploy is None:
last_deploy = new_deploy
self._emit_deploy_event(last_deploy, new_deploy, clean, undeployed_posts)

# Store timestamp of successful deployment
Expand Down

0 comments on commit 1579ff7

Please sign in to comment.