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

Doctor doesn't know Vhost can be stored in .env file. #535

Closed
Gadgitmatic opened this issue Jul 5, 2019 · 5 comments
Closed

Doctor doesn't know Vhost can be stored in .env file. #535

Gadgitmatic opened this issue Jul 5, 2019 · 5 comments
Assignees
Labels

Comments

@Gadgitmatic
Copy link

I've stored all my personally identifying information in a .env file rather than the movefile itself. This works great! Though, when running wordmove doctor it gives the following error:

 ▬▬ Using Movefile: ./movefile.yml ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

▬▬ Validating movefile section: global ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    ✅  success | Formal validation passed

▬▬ Validating movefile section: local ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    ✅  success | Formal validation passed

▬▬ Validating movefile section: production ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    ❌  error | [/vhost] '': not matched to pattern /^https?:\/\//.

▬▬ Validating movefile section: stg ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    ❌  error | [/vhost] '': not matched to pattern /^https?:\/\//.

This is somewhat of a false-flag since the vhost is correct, just that it's found in the .env file not the movefile.

This is what my movefile looks like

production:
    vhost: "<%= ENV['Pvhost'] %>"
    wordpress_path: "<%= ENV['Ppath'] %>"

    database:
        name: "<%= ENV['PDB'] %>"
        user: "<%= ENV['USER'] %>"
        password: "<%= ENV['PASS'] %>"
        host: "localhost"
    ssh:
        host: "<%= ENV['SSH'] %>"

  stg:
    vhost: "<%= ENV['Svhost'] %>"
    wordpress_path: "<%= ENV['Spath'] %>"

    database:
        name: "<%= ENV['SDB'] %>"
        user: "<%= ENV['USER'] %>"
        password: "<%= ENV['PASS'] %>"
        host: "localhost"
    ssh:
        host: "<%= ENV['SSH'] %>" 
@alessandro-fazzi
Copy link
Member

@Gadgitmatic probably the fact is that it is a bug: doctor was implemented before .env support (a big and awesome community contributed feature) and I think the latter was not introduced into the doctor's logic. My fault to have had a tunnel vision while revisioning the .env's PR.

I'll take the time to confirm my theory and eventually to label this as a bug.

Thank you very much

@Gadgitmatic
Copy link
Author

Gadgitmatic commented Jul 6, 2019 via email

@debonx
Copy link

debonx commented Mar 24, 2020

Same issue for me but not a biggie.

@alessandro-fazzi
Copy link
Member

Yep, this is officially recognized like one of the confirmed bugs :)

@alessandro-fazzi
Copy link
Member

I've not tracked where this was fixed, but in current alpha version (next release candidate) the problem doesn't occur anymore.

I know that's still alpha, but since I'm doing housekeepings, I'm going to close.

Ref: #624

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

3 participants