This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

algebreico
algebreico

Hi all, I have an existing project that was running correctly on a homestead "machine". In order to be able to differentiate the development environment from the production one, I was using the APP_ENV environment variable. Now I have deployed the same project on a different homestead machine, but I am not able to read the database config parameters which are stored in a file called config/dev/database.php because in Homestead.yaml I have:

variables:
    - key: APP_ENV
      value: dev

If I connect to the homestead machine and I try to run the artisan command for detecting the environment from the project folder I get the following result:

> php artisan env
Current application environment: dev

Which tasks can I perform for making the dev environment working? Can someone help me please?

Thanks

OFFLINE
OFFLINE

I'm having the same problem. Were you able to solve it?

Edit: Just fixed it. Had a space in the config/dev/database.php connections key so the config did not get overwritten.

Thanks!

Last updated

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.