Update fill prefetch CLI (#171)

* Update fill prefetch CLI to accept env variables

* Clean up assets before building util package

* Accomodate change in other watchers and codegen

* Add logs for debugging failing test in CI
This commit is contained in:
prathamesh0
2022-09-06 13:19:14 +05:30
committed by GitHub
parent 8af7417df6
commit 1e284bd07e
9 changed files with 36 additions and 16 deletions
@@ -26,7 +26,9 @@ const log = debug('vulcanize:server');
export const main = async (): Promise<any> => {
const argv = await yargs(hideBin(process.argv)).parserConfiguration({
'parse-numbers': false
}).options({
}).env(
'FILL'
).options({
configFile: {
alias: 'f',
type: 'string',
@@ -62,10 +64,10 @@ export const main = async (): Promise<any> => {
const db = new Database(config.database);
await db.init();
{{#if (subgraphPath)}}
const graphDb = new GraphDatabase(config.database, path.resolve(__dirname, 'entity/*'));
await graphDb.init();
const graphWatcher = new GraphWatcher(graphDb, ethClient, ethProvider, config.server);
{{/if}}