There is an "edit Nginx conf.." icon under the page (In your screenshot), check if the variables are defined in your Nginx conf also try restarting the Nginx from server page.
Forge: Access denied for user 'root'@'localhost'
Hi,
I solved some problems with Installing on Laravel V4 in Digital Ocean with Forge.
My (hopefully) last problem is, that I'll get this error while Deployment:
From bitbucket.org:kay899/stargate * branch master -> FETCH_HEAD Already up-to-date. Loading composer repositories with package information Updating dependencies (including require-dev) Generating autoload files Generating optimized class loader Generating optimized class loader
[PDOException]
SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)
migrate [--bench[="..."]] [--database[="..."]] [--force] [--path[="..."]] [--package[="..."]] [--pretend] [--seed]
In my boostrap/start.php I have:
$env = $app->detectEnvironment(function() { return getenv('APP_ENV') ?: 'local'; });
In my config/database.php I have:
'mysql' => array(
'driver' => 'mysql', 'host' => getenv('DB_HOST'), 'database' => getenv('DB_NAME'), 'username' => getenv('DB_USER'), 'password' => getenv('DB_PASS'), 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', ),
Enviroment variables have been added to Forge here:
http://www.pic-upload.de/view-25275545/forge.png.html
I also added APP_ENV = production as this shopuld be read in by start.php, right?
So what could be my problem? Thanks Kay
Please or to participate in this conversation.