Adding a directory to the PATH environment variable in Windows

Option 1 After you change PATH with the GUI, close and re-open the console window. This works because only programs started after the change will see the new PATH. Option 2 This option only affects your current shell session, not the whole system. Execute this command in the command window you have open: set PATH=%PATH%;C:\your\path\here\ … Read more

Setting environment variables on OS X

Bruno is right on track. I’ve done extensive research and if you want to set variables that are available in all GUI applications, your only option is /etc/launchd.conf. Please note that environment.plist does not work for applications launched via Spotlight. This is documented by Steve Sexton here. Open a terminal prompt Type sudo vi /etc/launchd.conf … Read more

How do I pass environment variables to Docker containers?

You can pass environment variables to your containers with the -e flag. An example from a startup script: sudo docker run -d -t -i -e REDIS_NAMESPACE=’staging’ \ -e POSTGRES_ENV_POSTGRES_PASSWORD=’foo’ \ -e POSTGRES_ENV_POSTGRES_USER=’bar’ \ -e POSTGRES_ENV_DB_NAME=’mysite_staging’ \ -e POSTGRES_PORT_5432_TCP_ADDR=’docker-db-1.hidden.us-east-1.rds.amazonaws.com’ \ -e SITE_URL=’staging.mysite.com’ \ -p 80:80 \ –link redis:redis \ –name container_name dockerhub_id/image_name Or, if you don’t … Read more

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