Welcome Guest | Login

Capistrano deleted my .htaccess file

Hello,

I played around with the Capistrano tutorial and inadvertantly deleted everything in the public_html directory, including the .htaccess file.  Now I understand that I need something from there.  Any chance of reinstating it?

Will.

2007-10-24 01:46 AM

Hello,

I have copied a fresh .htaccess file to your rails app. Do check it and confirm the same

2007-10-24 02:10 AM

Regards,
Rahul
Okay, I see the file there.

Now I'm getting the infamous:

Application error
Rails application failed to start properly

error.

I've looked through the tutorials, but where do I look for logs to solve this problem?

2007-10-24 02:25 PM

The log files are under the log directory of your app. You should look into production log if the app is running on production environment. This error seem to be an Apache related and you may need to check if your app's directories and dispatcher scripts that apache access are (public etc.) set to 755. The link below would be helpful with it.
http://www.hostingrails.com/forums/wiki_thread/7

2007-10-24 02:41 PM

I'm using Capistrano -- and it looks like there aren't any log files.  The log directory goes to shared/log, so I created an apps/shared/log directory, but still no files.

The access-logs symlink points to /usr/local/apache/domlogs/tersesy, which also doesn't exist.

I think the problem may be related to Capistrano:

** transaction: commit
 * executing `deploy:restart'
 * executing "/home/tersesy/apps/tersesystems/current/script/process/reaper --dispatcher=dispatch.fcgi"
   servers: ["74.86.164.232"]
   [74.86.164.232] executing command
** [out :: 74.86.164.232] Restarting 20462
** [out :: 74.86.164.232] kill
** [out :: 74.86.164.232] 20462: Operation not permitted
** [out :: 74.86.164.232] Restarting 20593
** [out :: 74.86.164.232] kill
** [out :: 74.86.164.232] 20593: Operation not permitted
   command finished
 * executing "cd /home/tersesy/apps/tersesystems/current && chmod 755 app config db lib public vendor script script/* public/disp*"
   servers: ["74.86.164.232"]
   [74.86.164.232] executing command
   command finished

The reaper doesn't seem to have permission to reap the fastcgi processes.

2007-10-24 02:56 PM

I've modified the shebang lie for the reaper script to /usr/local/bin/ruby . Could you try this again ?

2007-10-24 04:26 PM

It works now; I needed to add a shared/pids directory.

2007-10-26 01:18 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.