contentacms / contenta_react_next

React + Next.js implementation for Contenta
https://contenta-react-next.now.sh
14 stars 10 forks source link

Mac OS X #3

Closed bjarman closed 4 years ago

bjarman commented 4 years ago

I get: DONE Compiled successfully in 19314ms

Ready on http://app.docker.localhost

but the opening app.docker.localhost in my browser gets nothing. I have tried adding it to my hosts file but the result is the same.

Is this a OSX issue?

spleshka commented 4 years ago

Hi @bjarman, do you use Chrome or Safari? The *.localhost trick is a Chrome's specific thing, otherwise you'd have to add 127.0.0.1 app.docker.localhost to your /etc/hosts files.

bjarman commented 4 years ago

I use chrome, not safari.

On Wed, Oct 30, 2019 at 4:34 PM Evgeniy notifications@github.com wrote:

Hi @bjarman https://github.com/bjarman, do you use Chrome or Safari? The *.localhost trick is a Chrome's specific thing, otherwise you'd have to add 127.0.0.1 app.docker.localhost to your /etc/hosts files.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/contentacms/contenta_react_next/issues/3?email_source=notifications&email_token=AAFOBOIDM7MLM64D4C75LQLQRGSP3A5CNFSM4JG3NY62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECUVAQQ#issuecomment-547967042, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFOBOLACMTQM75NH3FDIX3QRGSP3ANCNFSM4JG3NY6Q .

spleshka commented 4 years ago

@bjarman can you post here the output of docker-compose logs node ?

bjarman commented 4 years ago

Attaching to systemseed_node_1

Only output from that command :/

bjarman commented 4 years ago

If i run: docker-compose logs i get this: traefik_1 | 2019/10/30 15:44:55 command traefik error: failed to decode configuration from flags: field not found, node: c

bjarman commented 4 years ago

If i tail the log during make up i get: systemseed_node_1 exited with code 0 systemseed_traefik_1 exited with code 1

spleshka commented 4 years ago

Hi @bjarman, thanks for the info. I was able to reproduce the issue. It looks like the root case of it is outdated traefic image.

Anyway, I've upgraded the app a little bit. Can you please delete the existing code you have locally, clone the repo again and make install and then make up? It should make it work as expected. Thanks!

bjarman commented 4 years ago

I will try this and post back here with the results. Thanks!

bjarman commented 4 years ago

Your fix worked like a charm! Thank you!

spleshka commented 4 years ago

@bjarman glad it helped. Pay attention that npm packages haven't been updated for a while, so use them for demo / playground purpose only. If you want to run a real app on this - please upgrade. I've got a plans to bring the packages to the latest version soon though, but just be aware of this.