-
-
Notifications
You must be signed in to change notification settings - Fork 227
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
ghost install
doesn't run system checks early enough / ghost doctor
is incomplete
#312
Comments
FWIW there's no difference in the functionality of |
IMO we shouldn't be installing Ghost if it isn't going to work. That's the point of doing the checks first. If you do the checks after, then you end up waiting for ages for a bunch of files you don't want. |
Sorry should clarify a bit more.
What I was suggesting is to move the doctor checks to the beginning of the |
The point is that nothing should happen until we're sure about the environment. Downloading and installing dependencies takes ages. It's not a good UX to execute that command on a machine and then get errors afterwards.
|
So if a user specifies |
No we should still do the checks. |
my only concern is that if a user runs |
Yes, definitely an edge case. Everyone has to run If it turns out this is common, we can look at it again, but to me the most logical answer is, if a stack-related thing throws an error in |
closes TryGhost#312, TryGhost#314 - move setup checks into install checks - add checks for mysql - improve doctor messaging
The move towards extensions has broken from the original intention of the cli single
ghost install
command &ghost doctor
commands. In terms of doing full stack checks up front.When I run
ghost doctor
I expect it to perform all system checks, and tell me whether it's safe to runghost install
& perhaps even early indicate I should useghost install local
. It currently only checks the node version and folder permissions.If
ghost doctor
says everything is A-OK, that should be a sign thatghost install
will complete using the standard recommended flow (e.g. including mysql, nginx, etc).When I run
ghost install
, I expectghost doctor
to happen first, running all the checks and giving me the option to proceed if at all possible.Here's what happens if you try to install Ghost on a mac:
Note: everything starts of green and shiny and then gets yellower and scarier and suddenly we're talking about nginx.
My expectation would be that this message:
Would appear before ghost-cli attempted to do a download and install, and then got stuck into trying to do stuff with MySQL.
The reason is, people don't know how to use ghost-cli yet. It's a brand new tool, I anticipate many people installing it on their mac or windows box to try it out and getting started with
ghost install
, not realising thatghost install local
is for them.The ideal situation would be that this message would appear before the download, install and prompts, with an additional indicator to use
ghost install local
:I realise this will take a bit of a rejig, and prob needs to happen post 1.0 now, however I do believe we need to work toward this.
The text was updated successfully, but these errors were encountered: