sinnbeck / laravel-served

Docker version of artisan serve (with alot more)
MIT License
74 stars 13 forks source link

Test database? #17

Open sinnbeck opened 4 years ago

sinnbeck commented 4 years ago

A test database would be nice. Should it be created by default or be an option (the user can add one manually, but that is more work)

iammikek commented 4 years ago

We're not gaining much overhead by adding an empty database, so adding it by default and it not being used wouldn't be too bad.

sinnbeck commented 4 years ago

Ok so we should just add a small sql script to create an extra database in Images/stubs.

Do you have experience with postgres?

iammikek commented 4 years ago

I've worked with Postgres before, but not for a while. what are you looking to do?

sinnbeck commented 4 years ago

Just wondering if we can create a database with the same sql command as for mysql. And if there are anything important to consider.

Otherwise I will just Google it 👍

iammikek commented 4 years ago

I'd have to google it to remind myself TBH.

sinnbeck commented 4 years ago

I'll brainstorm a bit. Maybe instead allow the user to add a db with an artisan command?

iammikek commented 4 years ago

running an extra artisan command would be my preference. Was thinking that we could have a command like the following

php artisan served:config

to do this, and then we can prompt for some details.

sinnbeck commented 4 years ago

Yeah. Or something database specific like php artisan served:db-manage

sinnbeck commented 4 years ago

But maybe for a start it is OK with external access, and "shell" access


php artisan served:ssh mysql