Questions tagged [capistrano]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
359 views

Connection Refused when Deploying Ruby on Rails application on Ubuntu Server

I'm pretty new to the DevOps world so I believe it is likely I'm missing something simple or not looking in the right places. I have deployed a Ruby on Rails application to an Ubuntu Server (on Linode)...
tibsar's user avatar
  • 111
2 votes
1 answer
3k views

Bundle install freezing on sassc during Rails server deployment

I'm trying to deploy a Rails app using capistrano. The deployment script, initiated by cap production deploy runs fine, until this command: $HOME/.rbenv/bin/rbenv exec bundle install --path /home/...
jacob_g's user avatar
  • 123
0 votes
1 answer
78 views

WP-DEPLOY : Cannot Push database

So I've been trying to set up Wp-Deploy for about 3 weeks now :( I have a digitalocean droplet that I am using for staging and was able to finally get my local environment to deploy the files to the ...
Jeremy Dixon's user avatar
1 vote
1 answer
3k views

nginx multiple (for now two) php projects via php-fpm in subdirectories using alias

For the love of nginx, I can't wrap my head around this issue. Desired: I want two simple php projects (wordpress in the long haul) in two sub locations under one server block. Side note: These ...
mahatmanich's user avatar
  • 2,984
0 votes
1 answer
653 views

AWS EC2 DNS not responding to Rails app deployment on CentOS 6 with capistrano

I'm attempting to deploy a small rails app w/ sqlite3 to a micro AWS EC2 CentOS 6 instance using capistrano (after not having much success with nginx & passenger). I follow this site to deploy my ...
Guy's user avatar
  • 1
1 vote
1 answer
45 views

Automating computing docker images on AWS E2C machines [closed]

I would like to distribute some of my computing programs on multiple machines when a specific process is started from a web gui. For this, I need to start several aws e2c machines, deploy my software (...
mojovski's user avatar
  • 113
1 vote
1 answer
1k views

Nginx not responding with rails app deployed on aws ec2 instance using capistrano

I have a rails application deployed through capistrano on an aws ec2 instance and have passenger nginx installed on the server as well. Whenever I try and access my application using the DNS or the ...
Zaeem Asif's user avatar
0 votes
0 answers
922 views

ruby on rails 404 not found after deployment

I'm getting a 404 not found error after deploying my rails app. I'm using: ubuntu, nginx, capistrano, & unicorn. These are my configurations: nginx.conf upstream unicorn { server unix:/tmp/...
dima's user avatar
  • 101
0 votes
1 answer
1k views

Capistrano 3 hangs in git:check

I'm trying to deploy to a new ubuntu 14.04 box with cap staging deploy, but capistrano hangs during the git:check task: GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/<app_name>/git-ssh.sh /usr/bin/env git ...
robd's user avatar
  • 141
0 votes
1 answer
632 views

Pipe Unicorn output to Logstash-Forwarder

I have installed logstash-forwarder on a DigitalOcean Ubuntu droplet, along with my Rails app that I deploy with Capistrano. I know logstash-forwarder is installed because I can do sudo service ...
Jezen Thomas's user avatar
1 vote
2 answers
7k views

NGINX Permissions: 'sudo nginx' vs 'sudo service nginx start'

I'm doing a capistrano Setup here with nginx 1.6.2 and Unicorn. But Under my current setup nginx doesn't create the server i have written in con file. Im sure its a permission error for my user's ...
Saad Masood's user avatar
3 votes
2 answers
1k views

Ansible/Capistrano with fixed sudo command ("sudo su -")

I have to administer some half-managed servers (monstly CentOS 6), where we are only allowed to login as a regular user, then do "sudo su -" and type the regular user password, and then run the ...
okelet's user avatar
  • 161
0 votes
1 answer
1k 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 https//subdomain....
dev's user avatar
  • 111
1 vote
1 answer
3k 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 :...
tr9sh's user avatar
  • 231
0 votes
2 answers
2k 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 ...
ilasno's user avatar
  • 236
-2 votes
3 answers
2k 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 ...
Jacob Waller's user avatar
1 vote
3 answers
2k 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 ...
Ken Prince's user avatar
2 votes
2 answers
71 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 ...
scragar's user avatar
  • 106
2 votes
1 answer
2k 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. ...
Raphael Riel's user avatar
6 votes
2 answers
2k 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 ...
EightyEight's user avatar
-1 votes
2 answers
74 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 ...
Zeck's user avatar
  • 101
2 votes
1 answer
587 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 ...
brupm's user avatar
  • 121
0 votes
2 answers
3k 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 ...
Ben's user avatar
  • 263
1 vote
0 answers
255 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 ...
weexpectedTHIS's user avatar
1 vote
1 answer
464 views

cant echo on remote server using capistrano

using the command line it works: $ ssh [email protected] password: > echo ping ping with capistrano: # set :use_sudo, true set :pty, true set :user, 'user' set :password, 'password' set :stage,...
AJcodez's user avatar
  • 233
1 vote
1 answer
173 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 ...
danielkza's user avatar
  • 573
0 votes
1 answer
721 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 ...
Rob's user avatar
  • 117
0 votes
2 answers
272 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 /...
ujjain's user avatar
  • 4,033
0 votes
1 answer
1k 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 ...
Andrew's user avatar
  • 205
12 votes
2 answers
11k 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 ...
Goldentoa11's user avatar
0 votes
1 answer
2k 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 ...
Alex's user avatar
  • 3
0 votes
2 answers
197 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 ...
Cpt. Senkfuss's user avatar
2 votes
1 answer
2k 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 : ...
Mathieu's user avatar
  • 73
0 votes
1 answer
365 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 ...
Archonic's user avatar
  • 394
2 votes
3 answers
6k 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 ...
kn330's user avatar
  • 837
2 votes
0 answers
384 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 ...
user175825's user avatar
0 votes
1 answer
712 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 ...
Danny's user avatar
  • 223
2 votes
2 answers
300 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 ...
Cpt. Senkfuss's user avatar
0 votes
2 answers
140 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 the ...
iDev247's user avatar
  • 751
0 votes
1 answer
164 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 ...
gooddadmike's user avatar
0 votes
1 answer
53 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 ...
elliance's user avatar
  • 103
1 vote
2 answers
1k 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 /var/...
Luca Spiller's user avatar
1 vote
2 answers
104 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 guide)...
Aaron Bushnell's user avatar
2 votes
0 answers
372 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 ...
Dan Green's user avatar
  • 161
1 vote
1 answer
233 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 ...
Mauricio Pasquier Juan's user avatar
2 votes
1 answer
386 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 ...
Daniel Fischer's user avatar
1 vote
1 answer
1k 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 { ...
joaorvmaia's user avatar
0 votes
1 answer
850 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 ...
com's user avatar
  • 261
0 votes
1 answer
2k 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 ...
achempion's user avatar
  • 105
3 votes
0 answers
1k 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 -...
Andy Copley's user avatar