Capistrano is a [web] application deployment tool, working in push mode.
1
vote
2answers
16 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
52 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
0answers
12 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
33 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
1answer
55 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
49 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 ...
0
votes
0answers
36 views
Capistrano commands timout [closed]
Not sure if this is the best place to be reporting this bug but I am seeing some strange behaviour with all cap commands. After successfully deploying a project with Capitrano and Rubber to an EC2 ...
1
vote
0answers
85 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
68 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
46 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
119 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
215 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
287 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
248 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
366 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
72 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 ...
1
vote
1answer
195 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
367 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
109 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 ...
1
vote
2answers
202 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
1k 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
4answers
810 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
475 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 ...
0
votes
1answer
535 views
rails cap deploy unicorn issues
Trying to get rails app deployed. Everything is installed nginx, unicorn, setup.
Error Im getting:
[109.etc] env RAILS_ENV=production sh -c 'kill -s USR2 '\''cat /tmp/unicorn.pid'\'''
sh: ...
0
votes
1answer
104 views
Ruby on Rails/Passenger with Apache2 - setting up sub domains
I'm trying to configure Apache2 and mod_passenger so I can have one site at the root of the server example.com/ and another totally different rails instance at example.com/second.
My ...
1
vote
0answers
27 views
How to log all commands that run at the remote server by Capistrano
I am deploying using Capistrano in multiple servers.
What is the best way to log all the commands which Capistrano executes at the remote
server during deployment ?
1
vote
1answer
844 views
Setting up Thin, Bundler and Ubuntu
I have a very simple Ruby application which uses Thin and Bundler that I need to stick on an Ubuntu box.
I've got as far as getting Ruby, bundler etc installed on the server, but am having trouble ...
0
votes
0answers
209 views
Capistrano deployment to a VPS failing
I'm using Capistrano to deploy a Ruby on Rails app to a VPS running Ubuntu 11.10. However, whenever I run cap:deploy i get this error:
cd: 1: can't cd to /var/www/appname/releases
The VPS I'm using ...
1
vote
0answers
332 views
Capistrano deploys break W3 Total Cache minify URL rewriting
I am running WordPress 3.2.1 on Linux on EC2 with Amazon CloudFront. Most of the caching/CDN services are working fine.
However, minify URL rewriting is not working. I get this error in the web ...
2
votes
2answers
610 views
MCollective vs. Capistrano for teams used to Capistrano
If a team is used to using Capistrano for application deployments, what is the compelling benefit of switching to MCollective, or adding it into the mix? The team is already taking on the task of ...
4
votes
1answer
335 views
Disable colour output from /etc/init.d scripts?
On RedHat/CentOS systems, all of the service management scripts in /etc/init.d (and also run by the "service" command) produce color output. (i.e. the "[ OK ]" and "[FAILED]" strings.) How do I ...
1
vote
1answer
663 views
rvmsudo foreman export upstart without asking for password
My capistrano deploy.rb has a foreman export command for a rails app on Ubuntu 10.04
So, while deploying, I want to export the foreman to upstart script.
But doing that, the command rvmsudo foreman ...
2
votes
1answer
722 views
Bootstrap and Deploy - Chef and Capistrano
I've been looking online for what practices people are using when scaling their site using chef/capistrano and have not found much procedural information on this so thought I would ask here.
We are ...
2
votes
3answers
1k views
emulate fabric/capistrano with puppet or chef
i have a few remote environments where i can only connect from outside but not from inside to outside. for my deployments/configuration needs i used fabric and capistrano that works fine but I have ...
2
votes
3answers
1k views
Apache/PHP appears to be caching symbolic links for 60 seconds - how to stop it, or discover what is really caching the symlinks and stop that?
We have a PHP web application we are deploying to a LAMP server running CentOS 5.5 using Capistrano. Capistrano manages switching to the latest version (and rolling back) using a symlink, so our ...
0
votes
1answer
346 views
Adding Listen 3050 to /etc/apache2/ports.conf causes mysql to crash
I am trying to set up a staging server on a VM on my local PC. Ubuntu 10.4.2 LTS 64 bit server is installed. I have another VM on the same machine running as a full time server, so I set-up ...
0
votes
1answer
329 views
Capistrano problem in Amazon Web Service
I'm running Rails + Passenger under an Ubuntu AWS's instance. Now I'm trying to deploy with Capistrano, I already did my git repository (and upload it to the server) and my deploy.rb file (with capify ...
1
vote
3answers
885 views
Is Capistrano still maintained? [closed]
According to his blog, Capistrano's primary author stopped maintaining it in 2009. The old web site capify.org now redirects to documentation on Github, and while it seems through the CHANGELOG that ...
1
vote
4answers
221 views
SSH global $PATH
When I'm logged in my ArchLinux server and type:
$echo $PATH
I get...
/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/core_perl
But when I'm NOT logged in and try:
ssh ...
0
votes
3answers
1k views
Capistrano + Nginx + Passenger = 403
I asked this over at stackoverflow as well, but still haven't received any answers that have helped me to solve this problem. I have spent almost a week at this point trying to solve the issue, and ...
2
votes
2answers
409 views
In Capistrano, how to create a .rvmrc file in the /current folder?
During my deploy, I want to create a .rvmrc file in the /current folder during a capistrano deployment.
How can I do this?
4
votes
3answers
537 views
Can capistrano or fabric be used to setup a server from scratch?
I'm hoping there is a light weight, command line utility that I could use to setup a server from scratch.
I like python's fabric or ruby's capistrano but from what I was reading they are more used ...
0
votes
2answers
402 views
Capistrano requiring root password to deploy - bad
I'm using Capistrano to deploy to my VPS (ubuntu, on Linode) and it seems to be requiring my root user's password to complete part of the deployment. This is not good as I see it.
(I'm rolling with ...
4
votes
5answers
504 views
-rwxr-xr-x@ meaning
I have a file with an @ after the permissions
-rwxr-xr-x@ 1 riccardotacconi staff 215 14 Sep 14:21 Capfile
Do you know its meaning.
I am deploying a Rails application using Capistrano. That ...
2
votes
1answer
2k views
How to execute a command on the server with Capistrano?
I have a very simple task called update_feeds:
desc "Update feeds"
task :update_feeds do
run "cd #{release_path}"
run "script/console production"
run "FeedEntry.update_all"
end
Whenever I try ...
0
votes
5answers
468 views
Capistrano security
We are using Capistrano in some systems as a deploy system.
The new sysadmin we have says that our setup is really dangerous and I would like to know how to fix it.
We have a deploy user called "foo" ...
4
votes
3answers
1k views
Is Capistrano or Puppet capable of this?
I find myself spending a lot of time setting up new servers. I always have the same exact software stack:
nginx
mysql
php + php-fpm + xcache
memcached
munin
I pull all the configuration and init.d ...
0
votes
2answers
2k views
capistrano still asks for the 1st password even though I've set up an ssh key?
Background: I've setup an ssh key to avoid having to use passwords
with capistrano per http://www.picky-ricky.com/2009/01/ssh-keys-with-capistrano.html.
A basic ssh to my server does work fine ...
3
votes
4answers
1k views
Configure sudo to ask for root password
Is it possibile to configure sudo to ask for root password instead of user password?
The server is configured with a root user and a simple user (let's call him simple) with limited privileges, used ...
