Skip to content
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

Pre fill custom configuration values #268

Closed
kirrg001 opened this issue Jul 4, 2017 · 1 comment
Closed

Pre fill custom configuration values #268

kirrg001 opened this issue Jul 4, 2017 · 1 comment

Comments

@kirrg001
Copy link
Contributor

kirrg001 commented Jul 4, 2017

What i have experienced is that, if you run ghost setup and you already have a custom config.production.json, the CLI always shows the default values. I was always confused what my current configuration values are.

Instead it would be useful to load the existing config.production.json file and pre fill the values.

So instead of showing

? Enter your MySQL username:

It would show (if the config has a configured user already)

? Enter your MySQL username (root)

@ErisDS
Copy link
Member

ErisDS commented Jul 5, 2017

I've run into this a couple of times, would be awesome to have it pull the existing config out

acburdine added a commit to acburdine/Ghost-CLI that referenced this issue Jul 10, 2017
closes TryGhost#280, closes TryGhost#268, refs TryGhost#317
- handle prompts better, don't prompt for mysql info if the user has specified sqlite
- don't prompt for URL if user has provided it
@ErisDS ErisDS closed this as completed in 8cdbad4 Jul 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants