welaika / wordmove

Multi-stage command line deploy/mirroring and task runner for Wordpress
https://wptools.it/wordmove
MIT License
1.87k stars 165 forks source link

Is there a way to concatenate flags, or omit some from --all ? #430

Closed frontenddevguy closed 6 years ago

frontenddevguy commented 6 years ago

Since I have been unable to get the db to push, I was wondering if it's possible to say: push all (but not db) push plugins, themes, uploads

The wiki made it seem as though this may be possible by adding a comma between flags but it appears not to work this way.

Is one of the above scenarios possible?

Also what is the command to update wordmove? I would like to try wordmove doctor and see if I can learn something about my local environment, to fix the db push

alessandro-fazzi commented 6 years ago

Hi @frontenddevguy ,

wordmove pull --all --no-db should do the work.

Issuing wordmove help pull will give you all the options

> wordmove help pull
Usage:
  wordmove pull

Options:
  -w, [--wordpress], [--no-wordpress]
  -u, [--uploads], [--no-uploads]
  -t, [--themes], [--no-themes]
  -p, [--plugins], [--no-plugins]
  -m, [--mu-plugins], [--no-mu-plugins]
  -l, [--languages], [--no-languages]
  -d, [--db], [--no-db]
  -v, [--verbose], [--no-verbose]
  -s, [--simulate], [--no-simulate]
  -e, [--environment=ENVIRONMENT]
  -c, [--config=CONFIG]
      [--debug], [--no-debug]
      [--no-adapt], [--no-no-adapt]
      [--all], [--no-all]

All the --no- options should coexist w/o problems after this commit.

Let me know if and when we can close the ticket :)

Good luck!

alessandro-fazzi commented 6 years ago

@frontenddevguy said:

Also what is the command to update wordmove?

gem update wordmove is the way to go; wordmove --version is useful to check your installed version :)

Keep in mind this is the really first version of the doctor, so be gentle and consider every contribution and thought as precious :)

Cheers

frontenddevguy commented 6 years ago

Nice one, thanks. I am very grateful for all you are doing! It makes everything so much easier :)

Just one more thing. How can we chain --no-wordpress AND --no-db

I ran wordmove doctor. Very cool..

Just a couple of errors that may be useful to report:

▬▬ ✓ Validating movefile section: production ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    error | [/ssh/port] '7822': not a integer.

▬▬ ✓ Validating movefile section: staging ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    error | [/vhost] 'https://staging.site.com': not matched to pattern /^http:\/\//.
    error | [/database/port] '7822': not a string. 

All the db stuff checked out ok, so ongoing troubleshooting with getting db push to work..

alessandro-fazzi commented 6 years ago

Just one more thing. How can we chain --no-wordpress AND --no-db

Yep! I've updated the documentation with --no-* explanation: https://github.com/welaika/wordmove/wiki/Usage-and-flags-explained#--no-

alessandro-fazzi commented 6 years ago

Nice one, thanks. I am very grateful for all you are doing! [...] I ran wordmove doctor. Very cool..

Just a couple of errors that may be useful to report:

First of all you are welcome! Moreover an issue opened by a proactive user, brings benefit to all the community.

Would you mind to open a specific issue about the doctor? We are inspecting its behaviour as well and we already have a couple of improvements to push out. But I'd like to have an in-topic issue where to discuss your notes and maybe add there some notes from the maintainers :)

Close this one if you are happy, please!

alessandro-fazzi commented 6 years ago

Accidental closing ;)

alessandro-fazzi commented 6 years ago

@frontenddevguy I've annotated your notes about doctor here together with other issues raised from my team :)

frontenddevguy commented 6 years ago

Many thanks. I am having a very busy time so apologies for not getting to this sooner!