Questions tagged [capistrano]

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

Capistrano is a utility and framework for executing commands in parallel on multiple remote machines, via SSH. It uses a simple DSL (borrowed in part from Rake) that allows you to define tasks, which may be applied to machines in certain roles. It also supports tunneling connections via some gateway machine to allow operations to be performed behind VPN's and firewalls.

Capistrano was originally designed to simplify and automate deployment of web applications to distributed environments, and originally came bundled with a set of tasks designed for deploying Rails applications.

https://github.com/capistrano/capistrano

85 questions
2
votes
2 answers

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?
Blankman
  • 2,891
  • 10
  • 39
  • 68
2
votes
1 answer

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/deploy/app/shared/bundle --jobs 4 --without…
jacob_g
  • 123
  • 7
1
vote
1 answer

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 projects reside in two different directories on the…
mahatmanich
  • 2,954
  • 3
  • 22
  • 23
1
vote
1 answer

Automating computing docker images on AWS E2C machines

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 (docker), run the programs, and shut down the e2c…
mojovski
  • 113
  • 5
1
vote
1 answer

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 public IP provided, all I get is the browser…
1
vote
2 answers

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 directory as thats where the conf files are located…
Saad Masood
  • 179
  • 3
  • 10
1
vote
1 answer

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 :application, "my_app" set :repo_url,…
tr9sh
  • 221
  • 2
  • 8
1
vote
3 answers

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 plugins from the admin area, WordPress asks for…
Ken Prince
  • 113
  • 5
1
vote
0 answers

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 run the thin restart command from the new deploy…
1
vote
1 answer

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 :stage, :production role :web, 'remote.vm.net' task :ping…
AJcodez
  • 233
  • 1
  • 4
  • 11
1
vote
1 answer

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 authentication User home storage and web pages Entries…
danielkza
  • 503
  • 1
  • 4
  • 6
1
vote
2 answers

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/www//current. It then restarts Unicorn…
1
vote
2 answers

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) Created an SSH key on the remote server and…
1
vote
1 answer

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 use this user and did a succesful cap…
1
vote
1 answer

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 { default no; include…
joaorvmaia
  • 11
  • 3