I am working on an asp.net mvc web application. I have prepared a web deployment package from my staging environment as a zip file, then I publish this web deployment package inside IIS on production server and it worked well.
But currently I need to modify a Controller class to fix a bug on production. But I am not sure how I can publish this specific controller file to my production server .I test the fix on staging and now i need to deploy this controller class to my production
server, do i need to re-create the whole web deployment package ?. can anyone advice?
A controller is just one class in the resulting assembly (.dll) that gets created when you build your application. It cannot stand alone unless you create it as a separate project (which would require more work).
I usually publish my apps locally to the file system and FTP the bit that changed to the server. In your case, that would be just the dll file that gets generated in the bin folder.
Member
488 Points
2558 Posts
How to manage future updates for my asp.net mvc web application, if i have deploy it as a web dep...
Feb 19, 2014 05:51 AM|johnjohn123123|LINK
I am working on an asp.net mvc web application. I have prepared a web deployment package from my staging environment as a zip file, then I publish this web deployment package inside IIS on production server and it worked well.
But currently I need to modify a Controller class to fix a bug on production. But I am not sure how I can publish this specific controller file to my production server .I test the fix on staging and now i need to deploy this controller class to my production server, do i need to re-create the whole web deployment package ?. can anyone advice?
Thanks
All-Star
194506 Points
28081 Posts
Moderator
Re: How to manage future updates for my asp.net mvc web application, if i have deploy it as a web...
Feb 19, 2014 08:06 AM|Mikesdotnetting|LINK
You will need to republish your app.
Member
488 Points
2558 Posts
Re: How to manage future updates for my asp.net mvc web application, if i have deploy it as a web...
Feb 19, 2014 08:24 AM|johnjohn123123|LINK
you mean to republish the whole application ? if yes , then is there a way to publish the single controller .cs file?
Thanks
All-Star
194506 Points
28081 Posts
Moderator
Re: How to manage future updates for my asp.net mvc web application, if i have deploy it as a web...
Feb 19, 2014 02:34 PM|Mikesdotnetting|LINK
A controller is just one class in the resulting assembly (.dll) that gets created when you build your application. It cannot stand alone unless you create it as a separate project (which would require more work).
I usually publish my apps locally to the file system and FTP the bit that changed to the server. In your case, that would be just the dll file that gets generated in the bin folder.