Here are the steps I follow.
- Comment out any Initialization strategy I'm using.
- Generate the database scripts for schema + data for all the tables EXCEPT the EdmMetadata table and run them on the web server. (Of course, if it's a production server, BE CAREFUL about this step. In my case, during development, the data in production and development are identical.)
- Commit my solution to subversion which then triggers TeamCity to build, test, and deploy to the web server (of course, you will have your own method for this step, but somehow deploy the website to the web server).
- You're all done!
The Initializer and the EdmMetadata tables are needed for development only.