dokku / dokku-mysql

a mysql plugin for dokku
MIT License
95 stars 39 forks source link

linked app doesn't display configs #2

Closed danielepolencic closed 9 years ago

danielepolencic commented 9 years ago

When I try to inspect the linked variables for the mysql plugin I get an empty response. Is this expected?

dokku (0.3.26), latest version of dokku-mysql

vagrant@vagrant-ubuntu-trusty-64:/vagrant_data$ dokku mysql:create test
-----> Starting container
       Waiting for container to be ready
=====> MySQL container created: test
       DSN: mysql://mysql:MjM0ZGVmODgyZDg3@172.17.0.13:3306/test
vagrant@vagrant-ubuntu-trusty-64:/vagrant_data$ dokku mysql:list
-----> MySQL services:
       test (running)
vagrant@vagrant-ubuntu-trusty-64:/vagrant_data$ dokku mysql:link test nodejs-js-app
-----> Restarting app nodejs-js-app
-----> Releasing nodejs-js-app ...
-----> Deploying nodejs-js-app ...
-----> DOKKU_SCALE file found
=====> web=1
-----> Running pre-flight checks
-----> Attempt 1/6 Waiting for 5 seconds ...
       CHECKS expected result:
       http://localhost/ => ""
-----> All checks successful!
=====> nodejs-js-app container output:
       Detected 512 MB available memory, 512 MB limit per process (WEB_MEMORY)
       Recommending WEB_CONCURRENCY=1
=====> end nodejs-js-app container output
-----> Running post-deploy
-----> Configuring nodejs-js-app.uasabiapp.dev...
-----> Creating http nginx.conf
-----> Running nginx-pre-reload
       Reloading nginx
-----> Shutting down old containers in 60 seconds
=====> 14bf420dfde97090f48075e52efa8c1d545018c3fc22183e9db3cf27411c5ad9
=====> Application deployed:
       http://nodejs-js-app.uasabiapp.dev
vagrant@vagrant-ubuntu-trusty-64:/vagrant_data$ dokku config nodejs-js-app
no config vars for nodejs-js-app
josegonzalez commented 9 years ago

dokku config will not output this information as it is specified directly to the container using docker's -e flag.

If you want information on the container, you need to do dokku mysql:info test.