Coder Social home page Coder Social logo

Comments (6)

fujiwara avatar fujiwara commented on May 20, 2024 1

@johncblandii ecspresso v2 adds --timeout cli flag. try it!

from ecspresso.

fujiwara avatar fujiwara commented on May 20, 2024

A configuration file of ecspresso is parsed as a template.
So you can set timeout by the TIMEOUT environment variable like the following example.

# ecspresso.yml
timeout: '{{ env `TIMEOUT` `10m` }}'

from ecspresso.

johncblandii avatar johncblandii commented on May 20, 2024

In CI, we call init, jq some task def changes, then call deploy. We don't have yq installed to edit the config.

This is why a default way would be better instead of us doing manual changes to configs in an automated scenario.

from ecspresso.

fujiwara avatar fujiwara commented on May 20, 2024

ecspresso supposes a typical use case as below,

  1. Run ecspresso init manually. Create configuration/definition files.
  2. Modify these files to templates manually and commit to a CI repository.
  3. CI checkouts these files and runs ecspresso deploy with environment variables (defined by runtime).

I did not assume to modify definition files by jq or other tools.

I added typical use case into readme. #600

from ecspresso.

fujiwara avatar fujiwara commented on May 20, 2024

@johncblandii ecspresso's configuration file includes various elements (that are fixed by the environment, or are flexible by runtime).

This situation is confusing, but adding the --timeout flag makes more confusion.

So, I tried to omit the timeout element in a configuration file created by ecspresso init command at #602.

This fix became ecspresso init does not write timeout. Therefore you can add any timeout: "xxx" to the configuration file.

How about #602?

from ecspresso.

johncblandii avatar johncblandii commented on May 20, 2024

I'm fine with it being omitted, but let us supply one so we can control it in our CI/CD process without having to manipulate a file.

This is a very common CLI request. Just give us control over settings.

from ecspresso.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.