How can I deploy an ASP.NET site (mvc) using GIT and, for example, beanstalkapp.com via FTP?

The problem is that when I commit the project directory, everything is loaded, including the source code.

+4
source share
3 answers

Not sure why you want to upload via FTP? You do not have to transfer your own compiled binaries to the source control for deployment.

You can take a look at AppHarbor , just push your code with git and it will be automatically created and deployed.

More on AppHarbor

Real alternatives to Windows Azure PaaS (web role)?

+6
source

Does it matter? Because asp.net pages can be compiled on the server, sometimes the source files on the web server are normal, so IIS cannot allow access to them.

Thus, loading binary files into the source control is usually a bad idea - it is best to deploy from your build server.

0
source

Actually, this is quite complicated.

For several months, I tried to automate our deployment without absolute success. In my experience, I only see a way to do this:

At the build server on your deployment computer (or on the same network)

The build server pulls your code from the repository, say, once a minute and checks for changes. If there are changes, it will execute the build scripts associated with this project. I suggest you use TeamCity because it is very easy to use compared to CruiseControl ( I'm not sure if you can use Git with TFS ). You can program the build server to create your solution or project, and after that you can run the msbuild script to copy the files to the production folder (for example: c:\inetpub\yourapp or \\my_server\inetpub\yourapp ). You can use MSBuild Copy Task to do this.

UPDATE 1: I have not tried, but if that helps, you can click on the FTP server using git-ftp

UPDATE 2: It seems like some guy did some workarounds and successfully deployed his application using Git and FTP.

0
source

Source: https://habr.com/ru/post/1336699/


All Articles