diff --git a/aztec-up/bin/docker-compose.test.yml b/aztec-up/bin/docker-compose.test.yml index 4a95518d32fb..604d3294e3c9 100644 --- a/aztec-up/bin/docker-compose.test.yml +++ b/aztec-up/bin/docker-compose.test.yml @@ -7,7 +7,7 @@ services: volumes: - ./log:/usr/src/yarn-project/aztec/log:rw - ${HOME}:${HOME} - command: start --txe + command: start --txe --port 8081 aztec-nargo: image: "aztecprotocol/aztec-nargo" diff --git a/yarn-project/aztec/src/cli/aztec_start_options.ts b/yarn-project/aztec/src/cli/aztec_start_options.ts index 9127623e5801..26d3f88df3fa 100644 --- a/yarn-project/aztec/src/cli/aztec_start_options.ts +++ b/yarn-project/aztec/src/cli/aztec_start_options.ts @@ -71,14 +71,14 @@ export const aztecStartOptions: { [key: string]: AztecStartOption[] } = { ], API: [ { - flag: '--port', + flag: '--port ', description: 'Port to run the Aztec Services on on', defaultValue: 8080, envVar: 'AZTEC_PORT', parseVal: val => parseInt(val, 10), }, { - flag: '--api-prefix', + flag: '--api-prefix ', description: 'Prefix for API routes on any service that is started', defaultValue: '', envVar: 'API_PREFIX', @@ -295,12 +295,5 @@ export const aztecStartOptions: { [key: string]: AztecStartOption[] } = { defaultValue: undefined, envVar: undefined, }, - { - flag: '--txe.port ', - description: 'Port to run TXE on', - defaultValue: 8081, - envVar: 'TXE_PORT', - parseVal: val => parseInt(val, 10), - }, ], }; diff --git a/yarn-project/aztec/src/cli/cmds/start_txe.ts b/yarn-project/aztec/src/cli/cmds/start_txe.ts index 608aa39581e9..703b2cb7d6eb 100644 --- a/yarn-project/aztec/src/cli/cmds/start_txe.ts +++ b/yarn-project/aztec/src/cli/cmds/start_txe.ts @@ -9,7 +9,6 @@ export const startTXE = (options: any, debugLogger: DebugLogger) => { const app = txeServer.getApp(); const httpServer = http.createServer(app.callback()); httpServer.timeout = 1e3 * 60 * 5; // 5 minutes - const port = parseInt(options.txePort); - httpServer.listen(port); - debugLogger.info(`TXE listening on port ${port}`); + httpServer.listen(options.port); + debugLogger.info(`TXE listening on port ${options.port}`); };