You can set your env keys in a tab: https://mattstauffer.co/blog/getting-your-first-site-up-and-running-in-laravel-forge#quick-tip
Laravel 5 Deployment on Laravel Forge
I am trying to deploy a fresh Laravel 5 project that I have working on my local environment with Homestead. However, when I try to deploy the project on Forge, I get this error:
[PDOException]
SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO)
I have a .env file in the project root that looks like this:
APP_ENV=local APP_DEBUG=true APP_KEY=******************************
DB_HOST=localhost DB_DATABASE=homestead DB_USERNAME=homestead DB_PASSWORD=secret
CACHE_DRIVER=file SESSION_DRIVER=file QUEUE_DRIVER=sync
MAIL_DRIVER=smtp MAIL_HOST=mailtrap.io MAIL_PORT=2525 MAIL_USERNAME=null MAIL_PASSWORD=null MAIL_ENCRYPTION=null
Do I need to change this for production or add another .env file on the server? Thank you!
Please or to participate in this conversation.