deployment

Git Workflow With Capistrano

自古美人都是妖i 提交于 2019-12-20 14:42:10
问题 I'm trying to get my head around a good git workflow using capistrano. I've found a few good articles, but I'm either not grasping completely what they're suggesting (likely) or they're somewhat lacking. Here's kind of what I had in mind so far, but I get caught up when to merge back into the master branch (i.e. before moving to stage? after?) and trying to hook it into capistrano for deployments: Make sure you’re up to date with all the changes made on the remote master branch by other

Git Workflow With Capistrano

江枫思渺然 提交于 2019-12-20 14:41:11
问题 I'm trying to get my head around a good git workflow using capistrano. I've found a few good articles, but I'm either not grasping completely what they're suggesting (likely) or they're somewhat lacking. Here's kind of what I had in mind so far, but I get caught up when to merge back into the master branch (i.e. before moving to stage? after?) and trying to hook it into capistrano for deployments: Make sure you’re up to date with all the changes made on the remote master branch by other

Deploy Entity Framework Code First

…衆ロ難τιáo~ 提交于 2019-12-20 12:04:04
问题 I guess I should have thought of this before I started my project but I have successfully built and tested a mini application using the code-first approach and I am ready to deploy it to a production web server. I have moved the folder to my staging server and everything works well. I am just curious if there is a suggested deployment strategy? If I make a change to the application I don't want to lose all the data if the application is restarted. Should I just generate the DB scripts from

What creates the directory “app.publish” in visual studio 2013?

两盒软妹~` 提交于 2019-12-20 10:58:48
问题 I switched over visual studio 2010 express, to visual studio 2013. Now, whenever I try to test the code, he says /bin/release/app.publish access is denied, giving back a error and forcing me to manually delete the folder. Every single time. Why is visual studio attempting to create that path in the first place? Whenever I go there he is empty anyways. 回答1: I was experimenting with ClickOnce, then decided against using it, then started noticing a MyApp.application file and app.publish folder

Clickonce deployment equivalent for Dotnet core applications

送分小仙女□ 提交于 2019-12-20 10:43:38
问题 We have a dotnet core console application which we want to use ClickOnce deployment. Mainly every time the user runs the application, it should check for update and update itself. This was available by default with ClickOnce deployment in dotnetframework applications. Dotnet core provides Framework Dependent Deployment & Self Contained Deployment. But in both the case, updates have to manually pushed. Please suggest how we can achieve ClickOnce deployment for dotnet core applications and if

How do you deal with connection strings when deploying an ASP.NET site?

坚强是说给别人听的谎言 提交于 2019-12-20 10:42:02
问题 Right now our test and production databases are on the same server, but with different names. Deploying has meant editing Web.config to change all the connection strings for the correct database. A step which I forget all too frequently... We've finally created a new database server for testing, and I'm moving the databases over... but now the server will be different and we'll still need to deal with connection string issues. I was thinking of managing it via a hosts file, but the thought of

Zero downtime deployment for Java apps

拟墨画扇 提交于 2019-12-20 10:39:09
问题 I am trying to build the very lightweight solution for zero downtime deployment for Java apps. For the sake of simplicity lets think that we have two servers. My solution is to use: On the "front" -- some load balancer (software) - I am thinking about HAProxy here. On the "back" - two servers, both running Tomcat with deployed application. When we are about to deploy new release We disable one of the servers with HAProxy, so only one server (let's call it server A, which is running old

Rails 4 + Capistrano 3 : fatal: Could not read from remote repository while deploying

心不动则不痛 提交于 2019-12-20 10:36:39
问题 I am getting following error while deploying Rails 4 application using Capistrano 3 INFO [87512eb8] Running /usr/bin/env chmod +x /tmp/magnificent/git-ssh.sh as deploy@104.236.6.180 DEBUG [87512eb8] Command: /usr/bin/env chmod +x /tmp/magnificent/git-ssh.sh INFO [87512eb8] Finished in 0.444 seconds with exit status 0 (successful). INFO [1ec94dd1] Running /usr/bin/env git ls-remote --heads git@github.com:BoTreeConsultingTeam/magnificent.git as deploy@104.236.6.180 DEBUG [1ec94dd1] Command: (

Angular 2 Ahead-of-Time Compiler with gulp-typescript

与世无争的帅哥 提交于 2019-12-20 10:23:40
问题 Angular 2 rc 6 written in Typescript 2.0.2 I'm trying to learn Ahead-of-Time compilation as outlined here. It seems simple enough: Run ngc instead of the Typescript compiler to generate .ngfactory.ts files Replace platformBrowserDynamic().bootstrapModule() with platformBrowser().bootstrapModuleFactory() I'm not sure how to apply the first step to my setup. I use gulp-typescript 2.13.6 to compile my typescript to JavaScript. gulpfile.js var ts = require('gulp-typescript'); var tsProject = ts

Unicorn unable to write pid file

左心房为你撑大大i 提交于 2019-12-20 10:11:50
问题 I am using deploying a Ruby on Rails app to a Linode VPS using Capistrano. I am using Unicorn as the application server and Nginx as the proxy. My problem is that I am not able to start Unicorn because of an apparent permissions issue, but I'm having a hard time tracking it down. Unicorn is started using this Capistrano task: task :start, :roles => :app, :except => { :no_release => true } do run <<-CMD cd #{current_path} && #{unicorn_bin} -c #{unicorn_config} -E #{rails_env} -D CMD end I get