> > run database maintenance scripts using php as a cronjob > To do that, you don't need Apache or a web server, you can just call your PHP script in your cron job like if it was Ruby or shell script.
Let me know if that doesn't answer your question. - Matt On Mon, Dec 15, 2008 at 10:56 AM, liquid_rails <[email protected]>wrote: > > I plan to get a slicehost accout, and run database maintenance scripts > using php as a cronjob. So yes, the rails app and the php script > would run on the same box since both would perform operations on the > database. Will running apache as the main webserver compromise rails > performance? Thanks Rob > > On Dec 15, 10:38 am, "Rob Kaufman" <[email protected]> wrote: > > Hi Cheri, > > Really not clear what you're asking here. Are you trying to run a > > Rails app and a PHP script on the same box? If so what does you're > > server run as it's main webserver (Apache, Nginx, Lightspeed, > > Lighttpd?) How you run PHP scripts is a little different on each one > > (all of they are easy except Nginx... which is hard, but not really > > that hard). You don't really want to run the PHP script in you're > > application server (Mongrel, Thin, Passanger, Swiftiply, etc) You > > need to run it up at the webserver level. > > > > Best, > > Rob > > > > On Sun, Dec 14, 2008 at 18:42, liquid_rails <[email protected]> > wrote: > > > > > What's the best way to execute a php script when your website uses a > > > RoR server?! > > > > > Thanks > > > > > > > --~--~---------~--~----~------------~-------~--~----~ SD Ruby mailing list [email protected] http://groups.google.com/group/sdruby -~----------~----~----~----~------~----~------~--~---
