TryGhost / Ghost-CLI

CLI Tool for installing & updating Ghost
https://ghost.org
MIT License
453 stars 227 forks source link

Make it easier to enter a URL during `ghost config` #812

Closed ErisDS closed 6 years ago

ErisDS commented 6 years ago

At present we expect a fully formatted URL to be entered during ghost config including the protocol. However, we don't really make that clear in all cases and it's not really required. It's perfectly reasonable for me to enter mysite.com and expect that the CLI would add the https part for me along with setting up SSL.

Instead, what happens currently is the CLI complains the URL isn't valid 😞

I think we should add protocols to the URL according to the following rules:

Note: we are moving as fast as we can towards only supporting http for development - all Ghost blogs should be run fully HTTPS in production.

acburdine commented 6 years ago

As a side note this actually might allow us to upgrade our version of validatorjs, which is currently pinned a few major versions behind due to them changing the url validation.

Not that we have to update it, but if this change allows us to we might as well.