Re: [google-appengine] Re: Why is env_variables not transferred to container on instance

2017-09-21 Thread Søren Malling
2:15 PM Takashi Matsuo > wrote: > >> >> Yeah that sounds like a plan to me for now. >> >> On Thu, Sep 21, 2017 at 12:10 PM Søren Malling > > wrote: >> >>> Hi Takashi, >>> >>> Thanks for that information - it explains why I haven'

Re: [google-appengine] Re: Why is env_variables not transferred to container on instance

2017-09-21 Thread Søren Malling
g a flag >> `gcloud config set app/use_runtime_builders false`), it still invokes >> post-deploy-cmd. >> In that case, post-deploy-cmd should be able to access the envvars. >> >> Can you show me the build logs, or anything that shows how your app is >> failing

[google-appengine] Flexible env: post-deploy-cmd from composer.json it not being executed

2017-09-21 Thread Søren Malling
I have the following composer.json { "name": "project/platform", "config": { "vendor-dir": "Packages/Libraries", "bin-dir": "bin" }, "require": { "php": "7.0.*", "ext-redis": "*", "neos/flow": "^4.2" }, "scripts": { "post-update-cmd": "Neos\\Flow\\Composer\\I

Re: [google-appengine] Re: Why is env_variables not transferred to container on instance

2017-09-21 Thread Søren Malling
mple), the FLOW_CONTEXT and MYSQL_* enviroment parameters are not passed to the processes. Den torsdag den 21. september 2017 kl. 08.57.08 UTC+2 skrev Søren Malling: > > > Do you have actual problems connecting to the db? >> > > Yes. My application don't running can't

Re: [google-appengine] Re: Why is env_variables not transferred to container on instance

2017-09-20 Thread Søren Malling
> Do you have actual problems connecting to the db? > Yes. My application don't running can't read the env and the when running post-deploy-cmd from my composer.json, the FLOW_CONTEXT and MYSQL_* enviroment parameters are not passed to the processes > -- You received this message because yo

[google-appengine] Re: Why is env_variables not transferred to container on instance

2017-09-20 Thread Søren Malling
Then I see the environment variables similar to before, including the MYSQL_* settings PATH=/opt/php/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin HOSTNAME=f820f74adfc9 APPENGINE.GOOGLEAPIS.INTERNAL_NAME=/gaeapp/appengine.googleapis.internal FLOW_CONTEXT=Production GAE_DEPLOYME

[google-appengine] Re: Why is env_variables not transferred to container on instance

2017-09-20 Thread Søren Malling
So not really knowing what you wanted me to test, I tried to inspect the docker container sudo docker inspect gaeapp "Config": { "Env": [ "FLOW_CONTEXT=Production", "MYSQL_DSN=mysql:unix_socket=/cloudsql/...;dbname=...", "MYSQL_PASSWORD=...", "MYSQL_USER=... So, the conta

[google-appengine] Re: Why is env_variables not transferred to container on instance

2017-09-20 Thread Søren Malling
production;dbname=[DATABASE NAME] MYSQL_USER: [MYSQL USER FROM CONSOLE] MYSQL_PASSWORD: '[MYSQL PASSWORD FROM CONSOLE]' beta_settings: cloud_sql_instances: [PROJECT]:europe-west3:production Den onsdag den 20. september 2017 kl. 20.43.32 UTC+2 skrev Søren Malling: > > Hi

[google-appengine] Re: Why is env_variables not transferred to container on instance

2017-09-20 Thread Søren Malling
] SUDO_UID=1002 SUDO_GID=1002 Den onsdag den 20. september 2017 kl. 18.54.28 UTC+2 skrev Søren Malling: > > Hi George, > > So this is a question of naming and not a issue with the env_variables not > being transferred? :-) > > Will try it later today and give response here, t

[google-appengine] Re: Why is env_variables not transferred to container on instance

2017-09-20 Thread Søren Malling
Hi George, So this is a question of naming and not a issue with the env_variables not being transferred? :-) Will try it later today and give response here, thanks for the pointer! Den onsdag den 20. september 2017 kl. 17.59.59 UTC+2 skrev George (Cloud Platform Support): > > Hello Søren, >

[google-appengine] Re: env_variables not passed to app engine container

2017-09-20 Thread Søren Malling
Double post of https://groups.google.com/forum/#!topic/google-appengine/EKtmtMq6JIU feel free to delete this one. Den onsdag den 20. september 2017 kl. 15.17.37 UTC+2 skrev Søren Malling: > > Having a app.yaml similar to this > > runtime: php > env: flex > > runtime_conf

[google-appengine] Why is env_variables not transferred to container on instance

2017-09-20 Thread Søren Malling
I have a app.yaml similar to this runtime: php env: flex runtime_config: document_root: Web whitelist_functions: exec env_variables: DATABASE_DSN: mysql:unix_socket=/cloudsql/PROJECTNAME:europe-west3:production;dbname=DATABASE DATABASE_CREDENTIALS_USER: application DATABASE_CREDENTIAL

[google-appengine] env_variables not passed to app engine container

2017-09-20 Thread Søren Malling
Having a app.yaml similar to this runtime: php env: flex runtime_config: document_root: Web whitelist_functions: exec env_variables: DATABASE_DSN: 'DSN' DATABASE_CREDENTIALS_USER: 'USER' DATABASE_CREDENTIALS_PASSWORD: 'PASSWORD' beta_settings: cloud_sql_instances: INSTANCE_NAME