Created
October 5, 2019 02:02
-
-
Save georgejecook/2b475caf0439636c193c1389b65eeea7 to your computer and use it in GitHub Desktop.
how do I call run() from command line? this is ts file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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