The way of The Pragmatic Programmer.
Making source code repository.
Making deploy recipe. I recommend “capistrano”!
You can deploy your project
$ cap dev deploy
(You do not need deploy server. You can deploy localhost.)
Cheking your application at the platform you want.
You see it on your browser, if your application is web.
Also you see it on facebook, if your one is facebook application.