Differentiating web.config between dev, staging and production environments

My approach has been to have multiple config files. I put all environment agnostic stuff (i.e. doesn’t matter if dev, staging, or production) in the web.config file. Anything that is specific to the environment (i.e. database connection info, logging, debug settings, etc.) I put into a local.config file specific to the environment. You can then … Read more

What Does a Standard “Installation” actually do?

You’re really looking at a lot of legacy reasons all rolled into what has become standard practice in the Windows world. First, some contrast, because it isn’t always this way. An “application” in Mac OS X is simply a directory with a certain structure inside it, named with a .app extension. Installing an application is … Read more

Moving app to production mode in Symfony 2

Couple more things to consider: php app/console cache:clear –env=prod –no-debug php app/console assets:install web_directory php app/console assetic:dump web_directory You might also run into permission issues with the cache directory. I would actually first make sure everything works in development mode on the server before switching to production mode. And if all you get is blank … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)