Answered by:
MVC on hosted server - GoDaddy

Question
-
User-1641868886 posted
I have recently deployed my MVC5 project onto GoDaddy server. I find the need to modify one of my controller actions. The "precompiled" site that is uploaded through Visual Studio ftp deploy does not include the folders for models or controllers.
I have limited understanding of how this all works. So my question: do I need to re-upload the complete project just to implement a slight variation of a controller? Or is there a way I can "parse" the upload to just transfer the revised controller file?
Any advice much appreciated.
Thx,
RC
Wednesday, March 27, 2019 6:43 PM
Answers
-
User283571144 posted
Hi ReidMelSam,
As far as I know, if we use visual studio to publish the web application, it will check the destination folder and just publish modifyed file to the destination folder.
I guess you don't directly use visual studio publish feature to deploy hte application to Godday. You firslty publish the application to a specific folder and use transfer tool to publish to the Godday server?
If this is your environement, I suggest you could check the VS publish window, it will show the modify files, then you could directly upload these file to the godday server.
Best Regards,
Brando
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, March 28, 2019 7:24 AM
All replies
-
User475983607 posted
Only the bin/yourAppName.dll is required.
Wednesday, March 27, 2019 6:54 PM -
User-1641868886 posted
Okay...
I don't see any way to send just "bin/yourAppName.dll" through Visual Studio Publish. So do I send it via normal ftp transfer-like FileZilla?
If I do, is it "pre-compile" like sending through VS?
Does it re-write other files in the form they are on my development project (I have changed one or two things on the hosting server files, using their code editor).
Plz elaborate as you are dealing with a publishing newby.
Thursday, March 28, 2019 12:28 AM -
User283571144 posted
Hi ReidMelSam,
As far as I know, if we use visual studio to publish the web application, it will check the destination folder and just publish modifyed file to the destination folder.
I guess you don't directly use visual studio publish feature to deploy hte application to Godday. You firslty publish the application to a specific folder and use transfer tool to publish to the Godday server?
If this is your environement, I suggest you could check the VS publish window, it will show the modify files, then you could directly upload these file to the godday server.
Best Regards,
Brando
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, March 28, 2019 7:24 AM -
User-1641868886 posted
Brando,
Thank you very much for taking the time to explain. I have to admit I'm a little dense, but want to gain more knowledge on publish functions.
First, I AM using Visual Studio Publish. I do not see an opportunity to choose what to include and what to leave out. Also, I do not understand the difference between transferring files through VS Publish and just transferring them via an ftp app like FileZilla.
I made a few minor changes to my files on the GoDaddy server (mainly changed a few link targets, etc.) so I suppose all I need to do is make sure those are also changed on the development files, preserve my production (on GoDaddy) web.config, and then implement the VS Publish to get the important changes to the controller actions.
Sound Good?
Thanks again
RC
Thursday, March 28, 2019 3:25 PM -
User283571144 posted
Hi ReidMelSam,
I made a few minor changes to my files on the GoDaddy server (mainly changed a few link targets, etc.) so I suppose all I need to do is make sure those are also changed on the development files, preserve my production (on GoDaddy) web.config, and then implement the VS Publish to get the important changes to the controller actions.You mean you modify the godaddy server's application firstly, then you want to make sure this also changed on the development files?
In my opinion, we should firstly modify the development files then upload to the production environment(godday), since we need to test with the project firstly, then publish it to the production environment.
Best Regards,
Brando
Monday, April 1, 2019 6:35 AM -
User-1641868886 posted
Hi Brando,
No, I don't modify the hosted files first...as a normal practice. I should keep to disciplined procedures and make ANY and ALL changes first on my development (localhost) server through my Visual Studio solution files and then upload the corrected version(s).
In my haste to make a couple of slight changes (I disabled a few links as the site is not yet ready for the public) to files, I did the changes on the hosted server. Not a good idea for any substantial changes, so I should not do it for any.
Thanks again for helpful input. Marking your earlier post as answer, because it helped me to understand the Web Deploy function in VS 2017.
Reid C
Monday, April 1, 2019 4:58 PM