Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
hiway authored and devilgate committed Jul 14, 2021
1 parent b539974 commit f887cc0
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 f887cc0

Please sign in to comment.