Deploying latest release in specific enviroment

Hi,

I need deploy a project authomatically using chef and i found problems to get last deployed project in specif enviroment (Example: production).

With this latest deploy in specific enviroment I’ll set up a new production server but with the latest version deploy in production and not implesmente the last performed deploy.