I have deployed an Website built with angularjs and a Web Service Running Nancyfx framework rather than the "suggested" Web Api. I also use 2 SQL Databases.
I did this from Visual Studio where I have my project running. However the app (still in development) was developed locally on my mac and then just copied in visual studio.
Since I would be working with a friend of mine on it (who also uses mac) and we already have it on bitbucket with Git (my local version) I was wondering if it was possible to 'Set up deployment from source control' but only for the "website" part, meaning the angularjs. The web service needs to obviously be deployed from Visual Studio (I'm the only one working on that part).
Is there any way to achieve this? If I set up deployment from source control and then publish to the website from visual studio, would this override the existing version and current deployment last updated from Git? will it get denied publishing since it's set up from Git?
I am not sure how to better approach this.
The dirty way would be to set git for me and my friend on my local "app" folder of my Visual Studio solution so that I get his changes and then it's my job to publish it to azure via Visual Studio.
Turned out that what i needed is exactly this: Publish WebAPI and MVC projects to same Azure Web Site?
I therefore split my webservice (API) project so it's by itself and published that to mywebsite/api while my app resides on mywebsite/app so that I can publish my webservice changes from visual studio without problems, and also publish the changes to my angularjs app via git.
I haven't encountered any downside atm of doing this but it seems this is the best approach.
Related
We have developed a ReactJS web application and we want to host this application on IIS. The application successfully runs on IIS. Now, it is time to upgrade the application. Instead of manually copying the files to IIS folder, we want to simplify the deployment process.
How can we deploy the build package that is generated using command npm run build onto IIS web site using WebDeploy protocol?
(Note: IIS has already been configured to accept and successfully executes WebDeploy requests, such as Visual Studio MVC project outputs.)
It may be difficult to implement it, because web deploy often requires visual studio to package the application, which is different from the direct build of reactJS.
More deployment of ReactJS is to copy to remote IIS after the build is completed.If you insist on using web deploy, first you need to combine it with visual studio, packing the ReactJS after building.Then use powershell to deploy the package onto the remote server.
My preferred method is to use Azure DevOps. It is simple and easy to use, especially for the subsequent upgrade and deployment needs of your application. It can be deployed remotely, and it is also very convenient to upgrade and iterate after deployment.
Azure Pipelines
My company has been given a web application in Azure. This is our first Azure project; typically we develop C#/asp.net apps in Visual Studio with data in SQL Server and move the finished app to a web server.
I've connected Visual Studio 2015 to the Azure account. I can see the blobs, tables, and files. I've found a few html templates, but don't see any controllers; I think they might be in .dll files in the bin folder.
I would like to download the entire web application to Visual Studio on my local machine so I can debug it, make changes, and then republish the site. How do I do this? I can double-click on the files and view them in VS and I suppose I could save them one at a time, but that doesn't seem efficient. How can I download the whole project including putting the data in the blobs into something I can test locally (or connect a local VS instance to the remote data/blobs)?
Here is what I'm seeing from the Azure site in Visual Studio:
Update 1:
I think what I'm trying to find at this point is the js controllers (i.e. browseController.js). I can't find any controllers on Azure. Where would they be? Here's the expanded Cloud Explorer:
I would like to download the entire web application to Visual Studio
on my local machine so I can debug it, make changes, and then
republish the site. How do I do this?
I don't think it is possible to do what you're trying to accomplish because what gets deployed is the compiled code and not the source code. You would need source code to make changes.
You can take a backup of the application that's currently running into blob storage and from there you can download the application but again it would be the compiled application and not the source code.
I have been doing some work recently with publishing mvc applications on visual studio 2012. I have been using publish profiles to configure web deploy to different environments. I have also been using web transforms to transform my web.config as per each of my publish profiles.
In a package, is there a setting to ensure the server its getting installed on wipes previous installed content from the previous install?
As an aside from the above, is it possible to package an application and not have it perform the transforms until gets deployed? Therefore the package is independent of the target server (dev, qa) and can installed on either.
You can deploy an existing package using publish profiles with some custom MSDeploy magic. However, I've not tried to hold onto web.config transforms and gone with MSDeploy parameters completely. It's worth attempting, but I've not tested my custom script with them so there may be some targets that I've forgotten.
I still use web.config transforms, but only to remove non-debug elements when creating the package (with a Release transform)
I've developed a Lync Silverlight application and it is working on my local machine. Then I needed to add this Silverlight to a Sharepoint site, thus i used Silverlight web part. It is OK on my local Sharepoint site but when i install it to server i could not see the Silverlight and not getting error.
I am using web service on my Silverlight application. I check that server can access to web services. My development environment is Visual Studio 2010 and Lync Server 2010. Also I am using Sharepoint 2010.
Here is what i tried for the solution:
Check the whether IIS is configured for xap - OK
I tried to install xap file through Sharepoint module, it did not work.
I tried to use a visual web part, it did not work.
I tried to embed xap file to an HTML page for debugging, there was no error.
Now i am stuck. Any suggestion will be appreciated.
Have you cross-verify with which Silverlight sdk version you have developed your silverlight application.
And server is having that version installed?
if it's working fine with your local server then it also works fine with another server.
regards.
We have adopted WebDeploy for a new project and it seems to handle the deployment of our apps to our Dev and Test servers pretty well.
Now we would like to extend the use of WebDeploy to make it deploy database changes too.
Scott Gu's blogpost on webdeploy states:
Web Deploy enables you to not only
publish files – but also provision
database schema/data, run database
change scripts, set security ACLs, and
more
... but I can't find any good information on how to run database change scripts with
WebDeploy.
Does anyone have guidance, advice, best-practice or informative links for this?
Thanks
Darren.
If you're using Visual Studio 2010 or Visual Studio 2010 Express then you can specify database change scripts in the Package/Publish SQL tab in your project's properties. For more information see the following article:
How to: Deploy a Database With a Web Application Project