-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
Undefined error if nginx is not installed #260
Comments
oh yeah looking at those checks the error handling is all kinds of crap - will fix it 😄 |
@acburdine The setup checks for nginx/system can be removed anyway or? They are getting handled in the extensions. |
No - I think the setup checks still need to be there as it provides a unified way to check if the system stack is met. Just need to fix the error handling 😄 |
Ok 👍 |
I've pulled latest master, this is not resolved. The error is wrapped into a
|
ah crap, forgot about that 😕 |
closes #260 - fixes error handling to be actually fixed this time
closes #260 - fixes error handling to be actually fixed this time
I have setup a new droplet without nginx installed.
If i run
ghost install
, i am getting this error:I debugged quickly, here is the output:
I expect that the CLI tells me that nginx is not installed and skips this extension.
The problem here is that
dpkg -l | grep nginx
returns exit code 1, which results in an error.We need two things here:
Steps to reproduce:
successful debugging
I have added a super hack:
into https://github.com/TryGhost/Ghost-CLI/blob/master/lib/commands/doctor/checks/setup.js#L44, which worked for me.
CLI: latest master
The text was updated successfully, but these errors were encountered: