I thank those who have responded to my questions. Good advice, that. 
This is the first ecommerce site I have worked on, and while the code 
is pretty good and I found it easy to add the new feature the client 
wanted, there are a few administrative things I must fix, such as the 
absence of Capistrano (site is running in a VPS). I guess they just 
ftp'd code in and restarted, is there an alternative besides Capistrano?

I've already written a Cap script and used it successfully, so the 
original code is waiting at its new location. I plan to move the 
document root via the admin panel to the new location and restart the server.

So I thought I would first put up a "Down For Maintenance" notice in 
a public/index.html file and leave it for a little while to give 
anyone shopping a chance to finish. That seems to work, other pages 
can still be accessed.

Then I started looking at the shopping carts via an admin panel to 
see if I could figure out if anyone is still shopping. I found that 
carts are being created right now about one or two seconds apart! So 
I tailed the last 100,000 lines of the production log. That only 
takes it back two hours!

I find tons of

ActionController::RoutingError (No route matches ...

entries, including

ActionController::RoutingError (No route matches "/admin/default.asp"

which means some bot is banging on the door looking for a weakness.

641 carts have been created in the last half hour with calls like

Processing ProductsController#shipping_calculator

which apparently creates a cart.

Is this typical? Any simple way to weed out the junk from the log? 
How about my plan for moving the document root to the new code 
location? Should I just move it and restart the server and hope no 
glitches occur (and no sales are lost)?

Thanks again, what an adventure,

Scott

-- 
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby

Reply via email to