Thanks, Jamis... that was the nudge I needed. I was getting confused
about which directory I needed to be in, so now it's working.

...jon

On Sep 5, 6:26 am, "Jamis Buck" <[EMAIL PROTECTED]> wrote:
> The deploy:finalize_update task (which is called automatically as part
> of deploy:update_code, which is called automatically with deploy),
> creates a symlink from #{latest_release}/public/system to
> #{shared_path}/system. In other words:
>
>  deploy_to/current -> deploy_to/releases/20070905010203
>
>  deploy_to/releases/20070905010203/public/system -> deploy_to/shared/system
>
>  deploy_to/shared/system
>
> All of this assumes, too, that Apache is configured to look at
> deploy_to/current/public as the DOCUMENT_ROOT.
>
> - Jamis
>
> On 9/5/07, JSeidel <[EMAIL PROTECTED]> wrote:
>
>
>
> > 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