Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration parameter stage does not exist #1909

Closed
kinoute opened this issue Aug 19, 2019 · 5 comments
Closed

Configuration parameter stage does not exist #1909

kinoute opened this issue Aug 19, 2019 · 5 comments
Labels

Comments

@kinoute
Copy link

kinoute commented Aug 19, 2019

Hello,

After upgrading from 6.4.3 to 6.5.0, I'm getting the error Configuration parameter `stage` does not exist. when deploying, where config:current is called.

When I run dep config:current, I get the same error. It seems related to this commit: 6180366

I have default_stage set to production. If I add to my host configuration, the stage attribute like this:

host('production')
    ->stage('production')
    ->hostname('1.2.3.4')
    ->port('80')

The deployment goes through, but the config:current doesn't return anything:

Capture d’écran 2019-08-18 à 10 48 57

Am I missing something?

Regards

@antonmedv
Copy link
Member

Yes, you are correct. This is because get('stage'). This is a bug. Can you send fix PR?

@antonmedv antonmedv added the bug label Aug 19, 2019
@david884
Copy link

david884 commented Aug 19, 2019 via email

@dnaber-de
Copy link
Contributor

Hello there. I'm facing the same issue with dep config:hosts. PR is available. However I wonder why the task config:hosts is defined as one time task and not a local task? What is the reason for this @antonmedv

task('config:hosts', function () {
   
})->once();

As it just prints configuration it should be only executed on the local machine, shouldn't it?

@dnaber-de
Copy link
Contributor

My fix affected only the config:* tasks of the default recipes. Try to aks for has('stage') before you accessing the value via get('stage').

@ihommani
Copy link

ihommani commented Apr 20, 2020

My bad. I misunderstood the fix and deploy behavior. All is fine. @dnaber-de
I was declaring an extra argument. That's why my "stage" argument wasn't taken into consideration in the CLI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants