wordup-dev / wordup-cli

Wordup is a fully integrated development platform for WordPress. Develop plugins and themes locally. Preview in the cloud. Automatic updates in WP.
GNU General Public License v3.0
118 stars 16 forks source link

The Compose file...is invalid because... #13

Open davidshq opened 5 years ago

davidshq commented 5 years ago

Tried to run:

wordup wpcli plugin install cmb2

Received the following response

--- Currently running wordup projects: liquid-messages ---

Run command: wp plugin install cmb2 The Compose file 'C:\Users\david\AppData\Roaming\npm\node_modules\wordup-cli\docker\docker-compose.yml' is invalid because: services.mail.ports contains an invalid type, it should be a number, or an object services.wordpress.ports contains an invalid type, it should be a number, or an object

shry commented 5 years ago

Did you update wordup-cli from 0.7.2 to 0.7.3 ? It could be that this upgrade breaks the current installations, because the docker-compose version changed.

davidshq commented 5 years ago

I did upgrade to 0.7.3 - I'm guessing that is the problem.

shry commented 5 years ago

I'm pretty sure if you run wordup stop --delete (Please keep in mind that the WordPress installation with created posts etc. will be deleted) and afterwards wordup install it will fix the problem. Because the wordup-cli is still in beta, it can happen that sometimes things break after an update, sorry for the inconvenience.

davidshq commented 5 years ago

Hmmm...I'm still running into the same problem, but now also another one, I'll put in a ticket for it separately, as it is separate but I think probably should be resolved before this one...more to come.

shry commented 5 years ago

Thank you. I guess the issue could be platform related (Windows only). The ENV variable of the ports seems to make some problems. Could you lookup in the wordup config.json file if the listeningOnPort variable is set correctly?

shry commented 5 years ago

I investigated this issue, and i came to the conclusion that the downgrade of the docker-compose version in 0.7.3 is not compatible with Windows. If you change the version (at the beginning of the file) in 'C:\Users\david\AppData\Roaming\npm\node_modules\wordup-cli\docker\docker-compose.yml' back to 3.7, does it work again?

ddazal commented 4 years ago

Hi, I was having the same issue and I "solved" it by hardcoding the ports in the docker-compose.yml file. I realize it's not the best solution but is working for my needs though. The version of the docker-compose file is 3.3.

services:
  wordpress:
    ports:
      - "8000:80"
 mail:
    ports:
      - "8025:8025"
shry commented 4 years ago

Hi, I was having the same issue and I "solved" it by hardcoding the ports in the docker-compose.yml file. I realize it's not the best solution but is working for my needs though. The version of the docker-compose file is 3.3.

services:
  wordpress:
    ports:
      - "8000:80"
 mail:
    ports:
      - "8025:8025"

Thank you for your help. Have you tried also my idea of changing the docker-compose version to 3.7? Like i wrote in: https://github.com/wordup-dev/wordup-cli/issues/13#issuecomment-526604793
I still think that this causes the bug.

ddazal commented 4 years ago

Yes, I tried that with no success. I'm using Ubuntu 16 an the error is the same :(

services.mail.ports contains an invalid type, it should be a number, or an object
services.wordpress.ports contains an invalid type, it should be a number, or an object
shry commented 4 years ago

Ok. Thank you. I'm currently rewriting/refactoring a lot of parts of the wordup-cli, perhaps this bug will be fixed afterwards ;)