Dan
Dan

Reputation: 4299

Why does capistrano puts my Rails app in Releases folder?

After fighting through a lot of issues, I was able to deploy my Rails app ... but now the whole Rails directory structure is in the /var/www/-myappname-/releases/-datetimestamp- folder

I expected the app to get put into /var/www/-myappname- so that the routing would work? What am I missing here? Did I forget a step?

Upvotes: 0

Views: 87

Answers (1)

Mike Szyndel
Mike Szyndel

Reputation: 10593

This is done for couple of reasons

  • app doesn't go down during deploy (as some files would be overwritten while app is still running in the same dir)
  • so you can easily and quickly rollback in case of fuckup on deploy

Also, current release should be symlinked to /var/www/-myappname-/current and that's there your server should point to.

Upvotes: 2

Related Questions