I just upgraded to cap 2.0 (had a previous release running) and I
cannot get the web:disable feature to work properly,,,

BACKGROUND:
1. I did a cap deploy:setup for starters.
2. I run cap deploy:web:disable and everything seems to run
successfully
=====
C:\Dev\InstantRails\rails_apps\4MyPasswords>cap deploy:web:disable
  * executing `deploy:web:disable'
    servers: ["4mypasswords.com"]
Password:
  * uploading /home/jseidel/railsapp/shared/system/maintenance.html
 ** uploading data to 4mypasswords.com:/home/jseidel/railsapp/shared/
system/maintenance.html
  * done uploading data to 4mypasswords.com:/home/jseidel/railsapp/
shared/system/maintenance.html
    upload finished
=====
3. BUT... Normal pages still show up; no maintenance page.

Here is my .htaccess file:
=====
RewriteEngine On
RewriteCond %{REQUEST_URI} !\.(css|jpg|png)$
RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
RewriteCond %{SCRIPT_FILENAME} !maintenance.html
RewriteRule ^.*$ /system/maintenance.html [L]
=====

I think the problem may be how the directories are set up; here's a
portion of the structure I have:
/railsapp/public
/railsapp//shared
/railsapp/shared/system
/railsapp/shared/log
/railsapp/shared/pids

the maintenance.html file is put into the shared/system directory.

However, I noticed in a post to Rails Trac (http://dev.rubyonrails.org/
browser/tools/capistrano/lib/capistrano/recipes/deploy.rb?rev=6468)
that this code seems to expect a symlink so that /shared is linked to /
public/shared (and the same for shared/log & shared/pids)?

MY QUESTIONS:
1. Is this missing symlink(s) the issue?  Is not, what am I missing?
2. If the symlinks are the issue, why didn't the cap deploy:setup fix
things or give me an error?

Thanks much....jon


--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to