cancel
Showing results for 
Search instead for 
Did you mean: 

base_url - something like app/etc/local.xml in M2?

base_url - something like app/etc/local.xml in M2?

Hi there,

 

Magento 1 had a very cool feature that one could configure store-config in the app/etc/local.xml instaed of the DB. e.g.

<stores>
        <admin>
            <web>
                <unsecure>
                    <base_url>http://admin.localhost.de/</base_url>
                </unsecure>

                <secure>
                    <base_url>http://admin.localhost.de/</base_url>
                </secure>
            </web>
        </admin>

        <de>
            <web>
                <unsecure>
                    <base_url>http://store-de.localhost.de/</base_url>
                </unsecure>

                <secure>
                    <base_url>http://store-de.localhost.de/</base_url>
                </secure>
            </web>
        </de>

        <en>
            <web>
                <unsecure>
                    <base_url>http://store-en.localhost.de/</base_url>
                </unsecure>

                <secure>
                    <base_url>http://store-en.localhost.de/</base_url>
                </secure>
            </web>
        </en>
</store>

is there any way to achieve this in M2? The reason is that we want to use the same DB for our dev and local systems. but, it seems that one can save the base_url in the db only. 

 

Thanx and Cheers

Sam

1 REPLY

Re: base_url - something like app/etc/local.xml in M2?

I think you want shis file: /app/etc/env.php