Skip to content

Instantly share code, notes, and snippets.

@georgejecook
Created October 5, 2019 02:02
Show Gist options
  • Save georgejecook/2b475caf0439636c193c1389b65eeea7 to your computer and use it in GitHub Desktop.
Save georgejecook/2b475caf0439636c193c1389b65eeea7 to your computer and use it in GitHub Desktop.
how do I call run() from command line? this is ts file
import { SigningClient } from './signing-client';
const awsVars = {
awsAccessKey: process.env.AWS_KEY_ID,
awsSecretAccessKey: process.env.AWS_SECRET_ACCESS_KEY,
s3BucketName: process.env.S3_BUCKET_NAME,
awsRegion: process.env.AWS_REGION,
assetsHost: process.env.ASSETS_HOST,
zappToken: process.env.ZAPP_TOKEN,
zappPath: 'zapp'
};
export function run() {
console.log('creating signing client with vars', awsVars);
const client = new SigningClient(awsVars);
console.log('checking for pending builds');
client.processPendingS3Builds();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment