prooph / proophessor-do-symfony

Symfony version of proophessor-do CQRS + Event Sourcing example app
http://getprooph.org/
Other
170 stars 52 forks source link

Installing with Docker now working #16

Open adapik opened 7 years ago

adapik commented 7 years ago

I'm following instructions. EventStore and tables were created but seems projections are not.

`An exception occurred while executing 'SELECT * FROM read_user':

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'todo.read_user' doesn't exist`

prolic commented 7 years ago

You have to run the projections, did you?

On Oct 11, 2017 11:38 PM, "Adapik" notifications@github.com wrote:

I'm following instructions. EventStore and tables were created but seems projections are not.

`An exception occurred while executing 'SELECT * FROM read_user':

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'todo.read_user' doesn't exist`

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/prooph/proophessor-do-symfony/issues/16, or mute the thread https://github.com/notifications/unsubscribe-auth/AAYEvKiaRR6raVVC13uqDqxuhFonrEdIks5srODygaJpZM4P1sS_ .

adapik commented 7 years ago

Yes, I've finally found commands for running projections in manual installation file and run them mannualy. Now it's working. They are absent in Docker installation instructons.

prolic commented 7 years ago

Really? Please provide a PR for the docs. Thanks.

On Oct 12, 2017 1:03 AM, "Adapik" notifications@github.com wrote:

Yes, I've finally found commands for running projections in Vagrant installation file and run them mannualy. Now it's working. They are absent in Docker installation instructons.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/prooph/proophessor-do-symfony/issues/16#issuecomment-335878299, or mute the thread https://github.com/notifications/unsubscribe-auth/AAYEvKgOoVjAoKg4Khf9GF86xxiO33j7ks5srPTTgaJpZM4P1sS_ .

codeliner commented 7 years ago

projections should start automatically when using docker: https://github.com/prooph/proophessor-do-symfony/blob/master/docker-compose.yml#L37

But maybe there is a timing problem when running docker-compose up -d for the first time :thinking: I'll check it again with a fresh installation.

adapik commented 7 years ago

Thanks a lot for your help!

@codeliner , you are right. After docker-compose down and up everything works properly. I suppose when I was trying to run docker-compose up for the first time it was some problem with db (not started, not configured?), but it was no exit code 1 so i didn't noticed.

Probably it's some my local problem and you should close the issue.

codeliner commented 7 years ago

Ok, cool. Good to know. We should add a hint in the docs that if projections are not running one should look at the containers and try a down and up again