Just define two targets, MAMP and remote, Develop into MAMP then switch to remote when appropriate and upload. Database is a bit more fiddly as you need to keep the structures in sync, personally I do that manually, when i change local i also change remote but that is my preference.