How to run a rails project from remote machine by using webrick
My advice would be to ssh into the box to start the servers. And
perhaps vpn to develop your app remote?
If your developing locally you should have a look at Capistrano to
deploy your application on the remote machine.