Skip to content

Commit

Permalink
Merge pull request #20 from lanrat/pre-render
Browse files Browse the repository at this point in the history
render image on startup before cron
  • Loading branch information
sibbl authored Nov 22, 2021
2 parents 0694906 + dbf1513 commit 1125cdf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ const gm = require("gm");
);
renderAndConvertAsync(browser);
} else {
console.log("Starting first render...");
renderAndConvertAsync(browser);
console.log("Starting rendering cronjob...");
new CronJob({
cronTime: config.cronJob,
Expand Down

0 comments on commit 1125cdf

Please sign in to comment.