Skip to content

Commit cf2dccb

Browse files
committed
Remove custom port
1 parent 7d67d20 commit cf2dccb

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff 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.

agent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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`) }

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ program
3030
program.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

5858
program.parse(process.argv)

0 commit comments

Comments
 (0)