bolt / core

🧿 Bolt 5 core
https://boltcms.io
MIT License
551 stars 164 forks source link

CLI Install script addition #2960

Open evertalbers opened 3 years ago

evertalbers commented 3 years ago

I don’t know where to PR this so I put my suggestion here. I notice that after installation the CLI says

// You can start a webserver by running the following command:    

It maybe more correct to say something like

// You can start a webserver by navigating into the newly created folder, and running the following command: 

here, like in the docs.

I-Valchev commented 3 years ago

Hey @evertalbers , looking into this more I see that the bolt:server command (here: https://github.com/bolt/core/blob/master/src/Command/ServerCommand.php) runs with the --full-path option when creating an installation. Therefore, it gives the command including the full path, like so:

image

Does this cover the point regarding changing folders?

evertalbers commented 3 years ago

That command would immediately start the server from the correct folder, if I understand it correctly? Yes, that would be an option.

An advantage of my proposed solution is that it is more in line with the info that users will find in the docs. It might confuse some that one mentions symfony and the other bin/console (although you're probably going to tell me that both are the same thing).