Rollback a Webdeploy publish in ASP.NET MVC -


i have web deploy setup code first migrations executed on publish mvc project. there way rollback publish if screw up? can write unit , integration tests until blue in face inevitably bug or error through. better rollback changes try , fix error while live site down. have ruby on rails project deploy using capistrano. has handy "cap deploy:rollback" command use regularly. need mvc project.

what want create specific branches , tags in source control deploy off of tags. if want deploy previous version checkout branch/tag , deploy that.

you can run migration using script.

update-database -targetmigration:0 

just modify deploy script call latest version of migrations on branch.

taking these few steps allow deploy branch/tag want , production environment in sync.

note: caveat whether migrations can destructive.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -