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.

A random build was incorrectly promoted to production

See original GitHub issue

I was experimenting with putting non-string values for env vars in now.json; I made a variable called VUE_APP_FOO under the build env vars, and tried to give it an array value like:

"VUE_APP_FOO": ["foobar", 123]

When trying to deploy with the now command, it predictably failed with this error:

Error! The property build.env['VUE_APP_FOO'] in now.json can only be of type String.

I changed the value to a number instead of an array, and it failed again with the same error. After those two experiments, I made the value a string (actually, it was the array again, but JSON-encoded) and ran now one more time. This time, I unexpectedly got this warning:

WARN! This is the first deployment in the [my project name] project. It will be promoted to production.

Sure enough, it became the new production build on the domain after it finished building. It definitely wasn’t the first build for the project, and I didn’t change the name or anything, only that environment var. Was it because the previous two builds failed? Or was it totally random?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
foundryspatial-duncancommented, Sep 20, 2019

Sure thing. Sent!

1reaction
leocommented, Sep 19, 2019

Gotcha. Thanks for the details! We’ll take a look why this is happening.

It should not be.

Read more comments on GitHub >

github_iconTop Results From Across the Web

A random build was incorrectly promoted to production #3049
I was experimenting with putting non-string values for env vars in now.json; I made a variable called VUE_APP_FOO under the build env vars, ......
Read more >
Deploy promoted builds in Jenkins - Stack Overflow
I'm happy with my Build task, but I have a problem with my Deploy task. In my deploy task I want to select...
Read more >
Strategies for Learning from Failure - Harvard Business Review
Production continues unimpeded if the problem can be remedied in less than a minute. Otherwise, production is halted—despite the loss of revenue entailed—until ......
Read more >
Promotions and the Peter Principle - Oxford Academic
A second role of promotions is to provide incentives for lower level employees who value the pay and prestige associated with a higher...
Read more >
Six factors affecting reproducibility in life science research and ...
Scientific advancement depends on a strong foundation of data credibility. However, scientific findings in biomedical research are not always reproducible.
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