1. Learn to use a real editor. I don't care which. As long as it is either vim or emacs. And maybe TextMate.
2. Get to know your way around the command line. Really.
3. Use a VCS, may I propose: Git
Sure, Heroku got a nice in-browser editor, but that is not the main point, honestly, TextEdit provides more or less the same functionality.
The main point is easy as f*ck deployment. If you are using Git, a simple `git push` will be enough to deploy, run migrations and restart server. (http://blog.heroku.com/archives/2008/3/3/api_and_external_gi...)
Damn it, when is somebody creating a clone of that functionality? It is so pretty. git push, git push, git push.