File tree Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -28,11 +28,6 @@ npx @tideflowio/tideflow-agent -t [token] -u tideflow.example.com
2828## Environment variables
2929
3030``` bash
31- # Specify the URL to connect to the Tideflow's platform.
32- # Optional. Defaults to localhost:1337 if no -u parameter set
33- # Example: http://subdomain.example.com:1337
34- TF_AGENT_URL
35-
3631# Specify authentication token.
3732# Optional. Having the authentication token stored as an environment
3833# variable allows users to run the agent without passing the -t parameter.
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ module.exports.exec = (program) => {
2121
2222 let agent = { }
2323
24- const URL = program . url || process . env . TF_AGENT_URL || 'http://localhost:1337 '
24+ const URL = program . url || process . env . TF_AGENT_URL || 'http://localhost:3000 '
2525
2626 const parse = url . parse ( URL )
2727 if ( ! parse . hostname ) { throw new Error ( `"${ URL } " is not a valid url` ) }
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ program
3030program . on ( '--help' , function ( ) {
3131 console . log ( '' )
3232 console . log ( 'Examples:' )
33+ console . log ( '' )
3334 console . log ( ' $ tideflow-agent -u http://mytideflow.example.com -t agent-auth-token' )
3435 console . log ( ' $ tideflow-agent -c 16 -t agent-auth-token' )
3536 console . log ( ' $ tideflow-agent --help' )
@@ -41,8 +42,8 @@ program.on('--help', function(){
4142 console . log ( ' - TF_AGENT_URL' . yellow )
4243 console . log ( ` Current value: ${ process . env . TF_AGENT_URL || 'not set' } ` . gray )
4344 console . log ( ' Specify the URL to connect to the Tideflow\'s platform.' )
44- console . log ( ' Optional. Defaults to localhost:1337 if no -u parameter set' )
45- console . log ( ' Example: http://subdomain.example.com:1337 ' )
45+ console . log ( ' Optional. Defaults to localhost:3000 if no -u parameter set' )
46+ console . log ( ' Example: http://subdomain.example.com:3000 ' )
4647 console . log ( '' )
4748
4849 console . log ( ' - TIDEFLOWIO_AGENT_TOKEN' . yellow )
@@ -52,7 +53,6 @@ program.on('--help', function(){
5253 console . log ( ' variable allows users to run the agent without passing the -t parameter.' )
5354 console . log ( ' Example: d2a04f78-ff8a-4eb4-a12c-57fb7abf03a7' )
5455 console . log ( '' )
55-
5656} )
5757
5858program . parse ( process . argv )
You can’t perform that action at this time.
0 commit comments