I have a script being called by Composer that should run some database procedures. However, that script have no environment variables and thus is not connecting to the database as expected.
I tried to access the application using SSH and all the environment variables are there, accessible by the PHP command-line client.
Excerpt from the deploy output:
-----> Receiving push
#!/usr/bin/env php
All settings correct for using Composer
Downloading...
Composer successfully installed to: /srv/tmp/builddir/code/composer.phar
Use it: php /srv/tmp/builddir/code/composer.phar
Welcome to Phundament
Installing application...
Array
(
)
bool(false)
bool(false)
Those three debug outputs were generated by (yes, I've created the APPLICATION_ENV var as described in the guides):
print_r($_ENV);
var_dump(getenv('CRED_FILE'));
var_dump(getenv('APPLICATION_ENV'));