Reputation: 196429
right now i am simply ftping everything (all of my source code included) but i figured there was a best practices way to get the right dlls and the right aspx files to deploy.
Upvotes: 5
Views: 2555
Reputation: 1847
Despite some other tools I feel the best approach is to develop an understanding of the files needed to run the app and upload them appropriately. Depending on how you organize your application you'll be surprised at how simple it is to upload an MVC app. Here's what I do and I hope it helps:
I then upload the following files and folders:
Very simple and not very scary. This is a little simplified as I almost always have other folders and files I use (sitemap.xml, robot.txt, favicon.ico, App_Data (sometimes), etc, etc) but the above is the bare minimum needed. Works great for small to medium sites.
Upvotes: 5
Reputation: 6440
You can build into a different build folder, using msbuild /p:OutputDir=Build\
, which will eliminate extraneous files, then FTP that build folder.
I'm eager to see if anyone has better answers though. Good question.
Upvotes: 2