Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to specify custom polling time #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const FastBootAppServer = require('fastboot-app-server');

const S3_BUCKET = process.env.FASTBOOT_S3_BUCKET;
const S3_KEY = process.env.FASTBOOT_S3_KEY;
const S3_POLL_TIME = process.env.FASTBOOT_S3_POLL_TIME;
const REDIS_HOST = process.env.FASTBOOT_REDIS_HOST;
const REDIS_PORT = process.env.FASTBOOT_REDIS_PORT;
const REDIS_EXPIRY = process.env.FASTBOOT_REDIS_EXPIRY;
Expand All @@ -20,7 +21,8 @@ let downloader = new S3Downloader({

let notifier = new S3Notifier({
bucket: S3_BUCKET,
key: S3_KEY
key: S3_KEY,
poll: S3_POLL_TIME
});

let cache;
Expand Down