vtsykun/docker-orocommerce

Can't install correctly Oro

FabienSalles opened this issue · 2 comments

Hi,

I created a PR #4 with fixes but I have a last one that I can't solve :
When I try to access to the front controller with my browser wit the url locahost:8085 I'm redirected to the domain https://orocommerce.companyname.org/ that isn't accessible.
I added this domain in my /etc/hosts file but the problem is the same.

The application works fine in CLI with my fixes. I have logs with the redirection in nginx due to the index.php file but I don't understand what I have to do to use this domain.

Could you help me ?

Not the maintainer, but I can tell you that the redirect happens based on what is configured within your database.

If you want to change it, you will have to change following values (and clear cache)

SELECT * FROM oro_config_value c WHERE text_value LIKE 'htt%'

oro_config_value

id config_id name section text_value object_value array_value type created_at updated_at
1 1 application_url oro_ui http://localhost:8080 Tjs= Tjs= scalar 2021-01-05 20:46:02 2021-01-05 20:46:24
5 1 url oro_website http://localhost:8080 Tjs= Tjs= scalar 2021-01-05 20:46:13 2021-01-05 20:46:36
6 1 secure_url oro_website http://localhost:8080 Tjs= Tjs= scalar 2021-01-05 20:46:13 2021-01-05 20:46:36

Thanks a lot !

I should have this domain at the beginning and the PostgreSQL database was never removed because of the volume in my docker-composer file :

volumes:
        - .docker/db:/var/lib/postgresql/data

I deleted the folder, created again the database with default hostname localhost and now I access to the app !