Git Product home page Git Product logo

Comments (8)

MrKrisKrisu avatar MrKrisKrisu commented on September 23, 2024

Do you overwrite SESSION_DRIVER in you env? This should be database when seeding.

from traewelling.

pReya avatar pReya commented on September 23, 2024

Do you overwrite SESSION_DRIVER in you env? This should be database when seeding.

Did not change anything about this value – as there was nothing in the documentation.

Would you mind summarizing the necessary steps to have a seeded database in the dev setup? I'd be happy to add it to the documentation.

from traewelling.

HerrLevin avatar HerrLevin commented on September 23, 2024

Would you mind summarizing the necessary steps to have a seeded database in the dev setup?

Iirc there's only a few steps:
Clone, composer install, npm install, npm run dev

DB-wise you'll have to define your database. Either use sqlite (DB_HOST should point to a .sqlite file) or mysql/maridb.

Once that is set up you'll need the following commands:

  • php artisan key:generate
  • php artisan migrate:fresh --seed
  • php artisan passport:install

from traewelling.

HerrLevin avatar HerrLevin commented on September 23, 2024

Ohhhhh. You meant the docker setup. Sorry, i didn't see that the first time.
I haven't used the docker setup until now. Maybe @jeyemwey can help here?

from traewelling.

jeyemwey avatar jeyemwey commented on September 23, 2024

The sessions table is usually the first table that is queried on a page request, and that fails when the database isn't available.

The error presented is a MySQL error, so the connection and login seems to work, but the database is empty. Can you try php artisan migrate before the db seed command? That should initialize empty tables.

from traewelling.

pReya avatar pReya commented on September 23, 2024

The sessions table is usually the first table that is queried on a page request, and that fails when the database isn't available.

The error presented is a MySQL error, so the connection and login seems to work, but the database is empty. Can you try php artisan migrate before the db seed command? That should initialize empty tables.

So what you're saying is:

  1. Run compose up without SEED_DB=true
  2. Run php artisan migrate
  3. Run compose up WITH SEED_DB=true

Correct?

from traewelling.

jeyemwey avatar jeyemwey commented on September 23, 2024

from traewelling.

MrKrisKrisu avatar MrKrisKrisu commented on September 23, 2024

Please retry with the changes from #2074 and reopen if the error still exist for you.
If you don't overwrite SESSION_DRIVER in your environment the table should be created.

from traewelling.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.