Tagged Questions

Capistrano is a [web] application deployment tool, working in push mode.

learn more… | top users | synonyms

0
votes
1answer
133 views

Nginx: redirect http to https

I know the question has been asked countless times. Still cant get mine to work with the answers i've seen so far. I'm trying to force redirect http to https with nginx. When i visit ...
0
votes
1answer
134 views

capistrano 3 “does not appear to be a git repository”

I have a problem when I try to deploy a rails application via capistrano. The following are my current configuration files with redacted servernames: config/deploy.rb lock '3.2.1' set ...
0
votes
2answers
213 views

Capistrano 2 update_code task not using sudo

I'm using Capistrano 2(.15.4) to deploy rails applications (i know, trying to get to 3 but not quite there yet). We have a new server environment being set up, with IT preferring access through our ...
-2
votes
3answers
114 views

Enable Passwordless Sudo with Arguments

I am trying to enable passwordless sudo for updating yum on a RHEL box. I have the following line in sudo visudo. myuser ALL=(ALL) NOPASSWD: /usr/bin/yum update After doing this under myuser I am ...
0
votes
0answers
33 views

unicorn capistrano not starting

Hi I am deploying my rails application in VPS and I have followed https://coderwall.com/p/yz8cha this blog and the problem is nginx show only 500 error page , I doubt of that my unicorn is not starts ...
1
vote
1answer
118 views

Wordpress - Capistrano Permissions Issues

I'm managing a WordPress install with Capistrano and Composer. Everything is setup and working well, its quite fast on my ngix / php-fpm setup. However, I ran into an issue when attempting to update ...
2
votes
2answers
57 views

Delayed software release using pre-fetched update data?

I am currently specing out the software requirements for a new project which will be in locations with intermittent network connections. Since some of our locations will have intermittent network ...
0
votes
1answer
312 views

Capistrano fails to delete folders/files created by Apache

Problem Capistrano deploys a web application via SSH using deploy user. Apache/PHP runs under typical www-data user. Web server is creating cache files and folders at runtime inside the app path. ...
4
votes
0answers
714 views

Creating a docker container from a capistrano deploy

I'm having a bit of a difficult time understanding how I can leverage my existing infrastructure code with Docker. I have a Ruby on Rails app that uses capistrano to push out deployments. I want to ...
-1
votes
2answers
29 views

Nginx: Changing user [closed]

I have root and deployer users in my ubuntu 13.10. I also have nginx, unicorn installed with Rails 4 application. I'm deploying my application using capistrano 3. Problem: When I prepare a env for ...
2
votes
1answer
74 views

Sharing ENV variables between multiple linux servers

I need to be able to share ENV variables between multiple linux servers. These variables are used by my application. I'd like to keep these variables in sync between all servers. Application ...
0
votes
2answers
709 views

Permission to write using 'deploy' user

I'm currently new to Chef and Capistrano. I'm using version 3.x of Capistrano to deploy Rails 4 application. I have successfully bootstrapped a server using chef solo. One cookbook that I'm using is ...
0
votes
0answers
234 views

Capistrano, EC2, Permission Denied despite all user info being correct

So I'm using WP-Stack and trying to deploy from my local machine to an EC2 instance. Ive follow capistrano's SSH literature and I can for instance get the server info by just running SSH and the ...
0
votes
0answers
269 views

Capistrano SSH transfer very slow compared with scp

I am using Capistrano to deploy web applications from Amazon EC2 instances to our staging and production servers, but finding file transfer performance is very slow compared to a direct invocation of ...
1
vote
0answers
67 views

Get Thin server to restart while picking up changes in newly deployed directory

After deploying using capistrano where I have a deploy task that is restarting the thin server, the changes that were just deployed are not getting picked up by the thin server. Even if I manually ...
0
votes
1answer
73 views

cant echo on remote server using capistrano

using the command line it works: $ ssh user@remote.vm.net password: > echo ping ping with capistrano: # set :use_sudo, true set :pty, true set :user, 'user' set :password, 'password' set ...
1
vote
1answer
94 views

Is using Capistrano for user maintenance tasks on university lab feasible?

I've been looking around for tools to replace some legacy scripts for creating and maintaining accounts in a university computer lab ecosystem consisting of things like: LDAP and Kerberos for ...
0
votes
1answer
117 views

Apache sites file without domain name [closed]

I can't seem to find this on google. I'm trying to put up a quick test site using EC2 and Elastic IP but I'm getting stuck at how to edit the Apache sites file so that I can view the site. It's ...
0
votes
2answers
121 views

Can I use capistrano for this usage case?

I want to run commands on many servers simultaneously. I know that mcollective, capistrano, clusterssh and pconsole are tools to quickly managed many servers simultanesouly. An example command: du ...
0
votes
1answer
474 views

Connection error while deploying a PHP application to Linode using Capistrano

I'm trying to deploy a PHP application onto a Linode server with Capistrano. I've installed Ruby and Capistrano, and configured my deploy.rb file (possibly incorrectly). However, when I run cap ...
11
votes
2answers
1k views

What is the “+” in “drwxrwsr-x+”

I'm working a website we maintain, and I use Capistrano to deploy. I've kind of inherited the stuff, so I'm not the one who set everything up. When I deploy to the server, it fails and nothing is ...
0
votes
1answer
326 views

Capistrano authentication to server fails but ssh for deploy user works

I've been working with capistrano for about a year deploying an app and everything went fine, until a couple of days ago when I got this ** [server_name :: out] fatal: Authentication failed after ...
0
votes
2answers
84 views

capistrano-started tomcat dies immediately, ssh'ing the exact same command succeeds

so I was playing around with capistrano and a local dummy raring vm in vbox. everything was fine and my attention shifted to deployments on real machines. A couple of days later I want to deploy to my ...
2
votes
1answer
823 views

how to correctly clear php apc cache with capistrano

we are using capistrano to deploy our PHP application. and php-apc is enabled on the production server with apc.stat = 0. In capistrano config there is a rule to clear apc cache after deploy:update : ...
0
votes
1answer
182 views

Capistrano Shell Environment Errors

I'm trying to get capistrano working with rvm and passenger standalone. I had it working at one point, then capistrano suddenly started complaining about missing the bundle command. When I remove ...
1
vote
2answers
2k views

Capistrano error “bundle: not found”

I'm trying to deploy octopress on a VPS but getting this error bundle: not found but bundle is installed! Full error. $ cap deploy * 2013-07-20 18:08:55 executing `deploy' * 2013-07-20 18:08:55 ...
2
votes
0answers
160 views

capistrano deployment script fails with Cisco AnyConnect VPN connection

I am new to capistrano and trying to run script to deploy source codes to QA server which connected with VPN. Tested script in my 'Git bash' shell in windows machine. I have no problems at connecting ...
0
votes
1answer
429 views

Why does amazon ec2 have downtime after deploy when other identical servers do not?

This has puzzled me for the past few months...I'm admittedly new to server administration and I took a stab running a production rails app over at EC2. While I've learned a lot and feel pretty ...
2
votes
2answers
196 views

Archetypical user setup for capistrano to tomcat deployment on Linux box

I'm relatively new to the CD and DevOps topics and I am trying to setup automatic deployments with capistrano, which works well on my local add hoc test environment. I wonder however how one would ...
0
votes
2answers
80 views

Allow developers to deploy to server but not login (ssh) to server

This might be impossible but this is what I would like: Allow the developer to login to server via Capistrano so that he can deploy changes. e.g. cap deploy Do not allow the developer to login to ...
0
votes
1answer
81 views

Migrate Rails app with passenger, capistrano(with rubber), and ImageMagick to Dreamhost

I have a beta app that a developer has made for my company and I need to clone their work onto another server. I have successfully backed up the MySQL database to another server and copied all their ...
0
votes
1answer
42 views

How do I restart a process someone else is using

I'm pretty new to ops so please don't mind if use the incorrect terms. I have a program that runs on another box. I need to restart the program after I deploy code to it, via capistrano. I tried ...
1
vote
2answers
224 views

Rails: Multiple application deployment strategy

At my company, we currently have one main project which is a big monolithic Rails app. Deployment is easy, we have a couple of frontend servers (setup with Puppet) which Capistrano deploys into ...
1
vote
2answers
77 views

Securing a remote LAMP server that uses Capistrano for Git deploys

I am deploying my Github repo to a Media Temple Grid Server using Capistrano. In order to do this, I've setup the following: Enabled logging into the remote server with SSH keys (following this ...
2
votes
0answers
211 views

When restarting thin via Capistrano changes aren't picked up

In my deploy.rb I have the following tasks: namespace :deploy do task :start, :roles => :app do run "cd #{current_path} && bundle exec thin start -C config/thin.yml" end ...
1
vote
1answer
124 views

Capistrano suddenly stops using public key

I'm trying Capistrano to deploy to a VPS where I have public key access to my user foo. For deployment, I created another user deploy, set up my key into it's authorized_keys, configured capistrano to ...
1
vote
0answers
67 views

How to create a Capistrano task to import a backup from production into local development db?

I'm trying to do something with a Capistrano task that is similar to the heroku db:pull functionality if you are familiar with it. I have a remote server. On that server I have a bunch of backups in ...
1
vote
1answer
217 views

Dynamic IP on NGINX geo module without restart

I want create a task on my Capistrano deploy to put my public IP on geo module configuration of my NGINX server without restart NGINX, is it possible? Example, my /etc/nginx/nginx.conf: geo $geo { ...
0
votes
1answer
369 views

the right way to do deployment with capistrano

I look for good practices for deploying with capistrano. I would like to start out with a short description how I used to do deployment. capistrano is installed locally on a developer's computer. I ...
0
votes
1answer
775 views

unicorn and nginx, went wrong

I try to deploy my app via capistrano. It was done, but when I start to nginx and show my site in the browser I see 'We're sorry, but something went wrong.' It is bad. I use unicorn. See my configs ...
2
votes
0answers
605 views

Rails, Capistrano, Nginx, Unicorn - Application has been already initialized (RuntimeError)

Can anyone shed some light on what exactly this error refers to? I'm having trouble deploying new versions of the site. I, INFO -- : reloading config_file=[snip]/current/config/unicorn.rb I, INFO ...
2
votes
2answers
2k views

Force Capistrano to ask for password

I am deploying using Capistrano to a new server and having the following issue. Currently, I cannot add an SSH key to the server to log in with so I must use password authentication. However, I do ...
1
vote
1answer
106 views

Allow a group to run all files under a certain directory in CentOS

I am trying to set up automatic deployment for my Rails app using Capistrano. Capistrano will need to run sudo kill, and I achieved that without it asking me for a password, by editing the ...
2
votes
1answer
734 views

Deleting a remote directory using capistrano

I am using Capistrano to deploy a Ruby on Rails application to a server. Everything is running up until the point when bundle install is called in which case I get the error "Some gems seem to be ...
0
votes
2answers
1k views

Rails application only showing Nginx default page

I am having problems with my Rails application that will use Nginx and Passenger. I've already deployed the application and have setup the nginx config file as such: server { listen 80; ...
-1
votes
1answer
153 views

How to find your EC2 username and password

I recently took over a rails project from another developer that uses capistrano to deploy to EC2. When I try to deploy it is asking for a password. I can't figure out where to change the user and ...
2
votes
2answers
453 views

Capistrano deploying to different servers with different authentication methods

I need to deploy to 2 different server and these 2 servers have different authentication methods (one is my university's server and the other is an amazon web server AWS) I already have running ...
1
vote
3answers
2k views

Rails + Nginx + Unicorn multiple apps

I get the server where is currently installed two apps and i need to add another one, here is my configs. nginx.conf user www-data www-data; worker_processes 4; pid /var/run/nginx.pid; events { ...
11
votes
5answers
2k views

How do you keep up with Nagios/Capistrano configs when using EC2?

I use Amazon EC2 for my mobile app. Depending on load of the application at a given time, I might spawn new instances and then take them down when load is lower to save costs. How does one keep up ...
4
votes
1answer
1k views

Apache doesn't immediately notice a change in the document root

We use capistrano for website deployments and our Apache document root is a symlink to a particular code release. The deployment procedure switches the symlink from the old release to the new release ...