dokku-pg-plugin icon indicating copy to clipboard operation
dokku-pg-plugin copied to clipboard

automatically set existing DATABASE_URL for redeploy of linked app

Open srt32 opened this issue 11 years ago • 0 comments
trafficstars

Upon redeploying an app (having previously created a db and linking the existing app to the db) the redeployed app does not have access to the previously set DATABASE_URL. This makes sense because the new container won't have the env vars so my question is what is the preferred way to programmatically set the DATABASE_URL env var for a frequently deployed app? #23 seems promising but I still can't quite figure out what's going on. Also, this issue from docker seems promising but doesn't appear to automatically set env vars: https://github.com/dotcloud/docker/issues/240

srt32 avatar Jan 29 '14 20:01 srt32