web-deployment

Set Application Name in MSBuild Parameters

痴心易碎 提交于 2019-12-07 02:50:40
问题 I am deploying my web application from command line using this msbuild WebApplication1.csproj /t:Package /p:configuration=release It works fine, but the application deployed with the same name that is using in project settings page. I want to set the name of deployed application using same command line. Is there any parameter in msbuild to do so or any other approach. Thanks 回答1: You should try this msbuild WebApplication1.csproj /t:Package /p:configuration=release; DeployIISAppPath ="what

Allowed Host Setting for Django on EC2

有些话、适合烂在心里 提交于 2019-12-07 02:37:03
问题 I just deployed to an Amazon EC2 bitnami djnago stack and I'm having trouble with the ALLOWED_HOSTS setting in the settings.py file. I am not sure what hostname to use or where to find it. I have tried internal IP, external IP, localhost, domain name. The only thing that gets the 500 error pages to stop, is: ALLOWED_HOSTS = ['*'] But, this is a security issue. What am I missing? 回答1: Set it to - ALLOWED_HOSTS = [ '.yourdomain.com' ] Where yourdomain.com is the domain name you're using to

Eclipse: The selection did not contain any resource that can run on a server

时光毁灭记忆、已成空白 提交于 2019-12-06 23:09:42
问题 I am not able to run maven java web application project to the configured tomcat within eclipse ide. Initially I could right click on the project and run it on tomcat server but ever since I shared the project to a repository I am not able to do that. I disconnected the project form the repository and now I I dont even see the Run as -> Run on Server option inside eclipse ide. I am using m2e plugin version .0.12.1 and eclipse helios and tomcat 6. Could someone help me understand what am I

Capistrano and deployment of a website from Github

坚强是说给别人听的谎言 提交于 2019-12-06 19:43:37
问题 So, I had what I thought was a fairly simple Capistrano use case: I want to deploy a PHP site from Github. But I'm running into a lot of problems. When I run cap deploy , Capistrano is able to clone the Github repo (the deploy:update_code step), but then in the deploy:finalize_update step it says executing "rm -rf /var/www/sitename.com/releases/20100611144519/log /var/www/sitename.com/releases/20100611144519/public/system /var/www/sitename.com/releases/20100611144519/tmp/pids &&\\\n mkdir -p

Unable to Remove Web.Config Nodes using Transform

元气小坏坏 提交于 2019-12-06 18:47:33
问题 I have a web.config containing rewrite rules like this: <system.webServer> <rewrite> <rules><!-- Some rules here --></rules> </rewrite> </system.webServer> For a particular deployment configuration, I want to remove the <rewrite> node entirely. I tried doing this: <system.web> <rewrite xdt:Transform="RemoveAll" /> </system.web> Based on this documentation: http://msdn.microsoft.com/en-us/library/dd465326.aspx but the <rewrite> node remains. What am I missing? 回答1: Hmm I just tried this here

How to deploy an angularjs application frontend with Nginx and dropwizard

送分小仙女□ 提交于 2019-12-06 18:35:05
问题 I'm developing an application using angularjs application frontend having as backend dropwizard. I'm planning to use Nginx as gateway for the backend dropwizard server and as an asset server (images and maybe the angularjs application). My question is what is the best strategy for deployement: Bundling angularjs with the dropwizard backend and using nginx as frontend? Deploying angularjs application on the nginx server? Thanks in advance, 回答1: Following this answer You can use this nginx

Combined SVN FTP system?

对着背影说爱祢 提交于 2019-12-06 18:22:46
问题 Are there any systems out there where one can check in changes for a website and have that automatically update the website. The website effetively runs off the latest stable build the whole time without the need to ftp the files to the server. 回答1: I would look into using a post-commit hook to update the site when changes are made. This could be something as simple as using "svn export" to export the current state of the repository to the live website location. Of course, this has

ant target to deploy war to tomcat7/webapps

末鹿安然 提交于 2019-12-06 11:31:42
I want to deploy the just created *.war (exploded) to ${TOMCAT_HOME}/webapps using ant target. CONFIGURATION My tomcat version is 7.0.37 and tomcat-users.xml is : <role rolename="tomcat"/> <role rolename="role1"/> <role rolename="manager-gui"/> <user username="tomcat" password="tomcat" roles="tomcat,manager-gui"/> <user username="both" password="tomcat" roles="tomcat,role1,manager-gui"/> <user username="role1" password="tomcat" roles="role1"/> war.properties is : # War Build Properties package.dir=${basedir}/package war.exploded.dir=${deploy.dir}/war-ex # --------- Tomcat Settings ------------

How to write a reusable private library for Angular 2+

我们两清 提交于 2019-12-06 11:04:37
问题 I have created a generic framework for creating dashboards which consists of multiple modules using Angular-CLI. Some modules are completely independent. Developers who are using this library can add the modules on their project on demand. I had a previous version of this framework created in Angular Js 1.0, in this I have delivered as javascript min files. What are the things I have to take care to create this Library as private not for public or is there any way to package my modules as

Could not load file or assembly '…' or one of its dependencies. An attempt was made to load a program with an incorrect format

↘锁芯ラ 提交于 2019-12-06 09:56:58
问题 NOTE: I know this has been posted before but i have tried the solutions presented in other threads and haven't had any luck yet I'm trying to deploy a NET 4.0 MVC 4 Application onto an IIS server (version 7.5). I get the following error: The server is running Windows 7 64 bits. I'm using two "special" libraries: -EPPlus -itextsharp Notes: -The application pool has the following config: Help please :( 回答1: Probably, you are trying to load x32 DLL. Try to change "Enable 32-bit Applications" to