PDA

View Full Version : How to clear old sessions at OCS?


vjj
June 12th, 2008, 09:43 AM
Hi,
I have a shared web hosting account at OCS and have managed to get my first ever rails app up and running.

I read that I should clear out old sessions, and the Agile Programmers book recommends that, as I am keeping my session data in the database, I could use script/runner to execute a script (using the updated_at column) as a cron job.

I think I need to know the path to /script/runner. One website suggests "RAILS_ENV=production ./script/runner" ....
Is this the right path for my type of account to do this?

Thanks,

Vickie

rob
June 13th, 2008, 05:14 AM
The directory you need to be in to run that is the same directory your Rails app is in. So for example, let's say your app is in:

~/rails_apps/yourapp

This would be your path. The ~ means /home/you (where you is your username)