empty databases? #164
-
hi - first, apologies if this is a dumb question. i'm running via docker-compose, and it seems almost all of the databases are empty. i first noticed it when i tried to log in using the default admin creds, but was unable to; when that didn't work, i just registered a new account. but it wasn't an admin, so i checked the users table, and sure enough, that account was the only one listed. (i updated its record, so now i at least have admin.) anyway, in the web interface, everything except for utensils is completely empty; i've verified this using |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
It's possible that you had some issues on first time setup and actions that fill up the bar did not execute.
|
Beta Was this translation helpful? Give feedback.
-
thank you - that's what i thought. in this case, i seem to be having a very strange set of circumstances. i'll explain, and maybe you (or anyone) can tell me what dumb thing i'm missing. in order to eliminate variables, i spun a new vm running ubuntu server 22.04lts; i ran all the updates and installed docker/docker-compose. so far, so good. i followed the directions here: https://github.com/bar-assistant/docker/blob/master/README.md - the only modifications i made were to set anyway, i'm able to hit salt-rim in a browser, and see that it reports the backend is running. but...the databases are empty again. by that, i mean if i exec into the bar-assistant container and issue i don't really speak php, but i poked around some and saw that the main function here appears to be completely empty: https://github.com/karlomikus/bar-assistant/blob/9609f1923085de5e30d075e5c9d9bdf1540d66af/database/seeders/DatabaseSeeder.php i have no idea if that's related, just something i noticed in a file that sounded likely. i have, i should mention, also deleted & recreated the containers, both on this vm and my primary docker host. i feel like i must be missing some silly detail. any tips for troubleshooting? thanks! |
Beta Was this translation helpful? Give feedback.
-
What you are looking for is this command:
|
Beta Was this translation helpful? Give feedback.
-
brilliant! that was exactly what i needed - thank you so much! i can confirm not only that opening the bar worked, but also that this thing is FAST. looking forward to putting it to good use. thanks again! |
Beta Was this translation helpful? Give feedback.
What you are looking for is this command:
php artisan bar:open
. This sets up the initial data, but runs only if the database is created for the first time. So if you already have the volume and the database file is created it wont be run. You can see what executes in your container on start here: https://github.com/karlomikus/bar-assistant/blob/master/resources/docker/run.sh . You can try to fix it by running it manually: