Quantcast
Channel: Active questions tagged symfony4 - Stack Overflow
Viewing all articles
Browse latest Browse all 3924

How to start a Symfony server with environment variables from .env.test?

$
0
0

Is there any way to start the build in server with environment variables like DATABASE_URL from other environments like .env.test instead of .env?

I want to use diffrent databases for dev and test but the Symfony server allways starts using dev.

I already tried stuff like:

APP_ENV=test bin/console server:start

Im using symfony4


Viewing all articles
Browse latest Browse all 3924

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>