question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is it possible to customize the config from the command line?

See original GitHub issue

It would be nice if I could do something like this:

config:
  target: "..."
  phases:
    - duration: {{process.env.MY_DURATION}}
      arrivalRate: {{process.env.MY_ARRIVAL_RATE}}

So that I don’t have to change the yaml contents to produce different test runs.

Is there any way of doing that?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
hassycommented, Sep 20, 2017

No, not at the moment. I can think of a way to allow for arbitrary values to be overridden on the command line with something like:

artillery run --overrides '{"config": {"phases": [{"duration": 10, "arrivalRate": 10"}]}}' myscript.yaml

Thoughts? Would that work for what you are trying to do?

0reactions
hassycommented, Sep 22, 2017

There will be a new release of Artillery later today with the change (#207 as well).

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Customize the Command Prompt in Windows
Open the Terminal tab in the Command Prompt's Properties window. · Next, in the Terminal Colors section, select the options you want to...
Read more >
Command line for editing a configuration file value without an ...
I'm wondering if there is a tool that allows to change that kind of files without the need to open an interactive editor...
Read more >
How To Change Redis's Configuration from the Command Line
By changing your Redis configuration file, it's possible that you will cause your Redis server to behave in unexpected or undesirable ways. We ......
Read more >
How to Edit a Configuration File in Linux - Technical Support
Editing Configuration Files through the Command Line: 1. Open the “Terminal” program and open Orchid's configuration file in the nano text editor using...
Read more >
How To Customize Bash Prompt in Linux - phoenixNAP
Tutorial on how to customize the BASH prompt in Linux permanently or temporary. Set bash shell prompt variables including changing color.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found