Topic: Help with Rails on DreamHost (+ Facebook, Subversion & Capistrano)
I've been going through the excellent Rails for Facebook tutorials by Stuart Eccles. However, I really want to get my head round FBML, and this means deploying to a host or getting a local environment configured so that Facebook can see my Mac through my gateway. I've been struggling with this, so if you can advise on any of these steps, it's much appreciated (DreamHost haven't been able to help me);
1. Completely local development, or iterate and then deploy on DreamHost?
I set my dLink router to forward the Apache ports to my Mac on the network. However, when I go to my networks IP (learnt from whatismyip.org) I only get the router admin page, and not the route of my Mac Apache /Sites/ folder. Do I need to resolve this before I can get Facebook to see my Mac? Should it just be going through to my /Sites/ folder as I think it should? Or will having the port 80 forwarded always cause the browser to show the router admin page, and can Facebook just magically go straight to my Mac regardless of the browser showing the router admin login page? I've checked this over and over, and the ports are definitely set. The only thing I can thing of is that the same port forwarding rule might be set on another IP that isn't currently in use on the network, and maybe the DLink is, for some bizarre reason, only going to forward the ports to the first IP that got the rule. I'll be trying out another router shortly, as I'm sure I've done everything I can.
Because of this issue, it looks like I'll need to develop on my localhost and deploy to DreamHost to see what everything looks like. However, OS X Terminal won't connect to my server at DreamHost. When I type in 'ssh firstname.lastname@example.org', followed by the password, Terminal just sits and then times-out. If I type in the wrong password, it tells me so straight away. This is where it gets strange; I CAN connect through ssh using WinSCP for my Parallels installation of XP. Does anyone know why I can connect using WinSCP, but not through Terminal? I use shared-networking for Parallels.
2. Getting to grips with Rails/Capistrano/Subversion on DreamHost...
Just like Rails drills in DRY to beginners from the offset, I want to start with the right deployment and version control practices. So here's where I need some guidance;
If I'm developing on my Mac, do I need to install and configure Capistrano and Subversion on my Mac from the offset, and then install them and sync them with my DreamHost server (when I have SSH working)? Or should I just get stuck right into it and FTP over my developed app onto my subdomain at DreamHost and go to XP whenever I need to use SSH? Or do you guys think I should go through all of the Subversion & Capistrano manuals first?