cachethq / core

🚦 The core of Cachet, the open-source status page system.
https://cachethq.io
Other
154 stars 34 forks source link

Install Command #104

Open jbrooksuk opened 1 month ago

jbrooksuk commented 1 month ago

It should be possible to configure Cachet via a cachet:install Artisan command.

v2.x had an interactive command that would ask you questions and store the configuration.

For v3.x, this won't work exactly the same as we now have a mix of .env and database settings, but the idea is the same.

AlexJump24 commented 1 month ago

I've been thinking of looking at this, had a few ideas to run by but don't want to overcomplicate things if not needed.

Then there are a few others bits that would need to thought about such as the App ID being autogenerated even though its on the object, again attributes could be used but then conscious of bloating the properties.

Alternatively they can just manually be put in the install command if wanting the full flexibility going forward 😄

jbrooksuk commented 1 month ago

Love this, @AlexJump24! What if the setting classes defined a method that returns an array of property names that are "installable"?

AlexJump24 commented 1 month ago

Awesome, sounds good to me!