2
votes

I have my .env file configured with the remote DB credentials and its working on my local computer.

When I deploy the app to our dev server in the same page returns

SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES) (SQL: select * from `table_companies`)

Is there a command that I'm missing? Why if my .env us using our cloudways database credentials is saying homestead'@'localhost?

1

1 Answers

1
votes

The production server has its own DB credentials that you should put in server's own .env file.