# Deploy: config/database.yml symlinked to incorrect place

**URL:** <https://discourse.chef.io/t/deploy-config-database-yml-symlinked-to-incorrect-place/7361>\
**Category:** Chef Infra (archive)\
**Created:** [November 23, 2015, 9:38pm UTC](https://discourse.chef.io/t/deploy-config-database-yml-symlinked-to-incorrect-place/7361 "2015-11-23T21:38:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rainkinz](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/rainkinz/32/1164_2.png) [@rainkinz](https://discourse.chef.io/u/rainkinz)\
**Post date:** [November 23, 2015, 9:38pm UTC](https://discourse.chef.io/t/deploy-config-database-yml-symlinked-to-incorrect-place/7361/1 "2015-11-23T21:38:20Z")

</div>

Hi,  
I’m trying to deploy a really basic rails app with the deploy resource. It creates a release directory and checks out the code there no problem. It then creates the following symlink:

`database.yml -> /var/www/example_rails/shared/config/database.yml`

which looks good except that the only thing in that directory is a directory called `cached_copy` which contains the checked out project. Can anyone tell me what is wrong? Thanks

---

<div class="post-metadata">

**Author:** ![coderanger](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/coderanger/32/5_2.png) [@coderanger](https://discourse.chef.io/u/coderanger)\
**Post date:** [November 23, 2015, 9:52pm UTC](https://discourse.chef.io/t/deploy-config-database-yml-symlinked-to-incorrect-place/7361/2 "2015-11-23T21:52:58Z")

</div>

Responded on IRC.
