Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
76 votes
10 answers
18k views

Capistrano deploy fails after I changed the repository URL

I have a simple deployment via capistrano from a Git repository. At first I was deploying form GitHub, everything worked just fine. But then I moved my repository to BitBucket and now I'm getting ...
Jakub Arnold's user avatar
  • 86.7k
73 votes
4 answers
27k views

How to install RVM system requirements without giving sudo access for RVM user

On my Debian server I have a user called "deployer" that does not have sudo access, and has RVM installed. When installing Ruby using "deployer", like 1.9.3, it triggers a task to install ...
Vitaliy Yanchuk's user avatar
54 votes
9 answers
37k views

Capistrano SSH::AuthenticationFailed, not prompting for password

I've been using capistrano successfully for a while now and all of a sudden in every project I've lost the ability to deploy. Environment: os X (Mavericks) ruby 1.9.3p194 rvm (locally, not on server)...
Sparkmasterflex's user avatar
39 votes
4 answers
18k views

How do I target a specific commit SHA with capistrano deploy

I am wondering how I can target a specific commit SHA in Git for deployment, using Capistrano? It should be something like cap deploy --version=<sha targeted> Can't seem to find the answer to ...
Scott Miller's user avatar
  • 2,298
36 votes
4 answers
23k views

How can I find Phusion Passenger version?

How can I find my Phusion Passenger version? is there a command i can run from the terminal?
leonel's user avatar
  • 10.2k
36 votes
1 answer
19k views

chef install and update programs from source

I have a program that I build from source. For this I'm using the script resource. What is a good way to implement the logic for installation and update? Right now I just have installation implemented ...
m33lky's user avatar
  • 7,215
36 votes
7 answers
12k views

Hot deploy on Heroku with no downtime

A bad side of pushing to Heroku is that I must push the code (and the server restarts automatically) before running my db migrations. This can obviously cause some 500 errors on users navigating the ...
zetarun's user avatar
  • 787
32 votes
10 answers
29k views

bundle install doesn't work from capistrano

I want to deploy my simple rails 4.0 application via capistrano 3.0. I use bundler 1.3.5 so I add capistrano-bundler gem to integrate bundler with capistrano. I have pretty simple configuration (...
freemanoid's user avatar
  • 14.7k
31 votes
4 answers
33k views

How do I include variables in my VagrantFile?

Can anyone guide me to how do I include variables in my VagrantFile? I am trying to inject configs into the Vagrantfile from an external file so that I can distribute the config to my colleagues ...
MechaStorm's user avatar
  • 1,462
31 votes
9 answers
4k views

Best practices for new Rails deployments on Linux?

I've used straight Mongrel, I've used Mongrel clusters behind Apache, I've looked at Thin, and I'm becoming very intrigued by Passenger. I've looked at Nginx, too. I've looked at MRI, Ruby Enterprise ...
Jim Puls's user avatar
  • 80.5k
25 votes
2 answers
4k views

How can I make Rails 3 assets precompile faster?

I have a running Rails 3.2.1 application, that I'm deploying via Capistrano with the deploy/assets which runs the deploy:assets:precompile task. Everything works just fine, except that the ...
Jakub Arnold's user avatar
  • 86.7k
24 votes
2 answers
11k views

Restarting Unicorn with USR2 doesn't seem to reload production.rb settings

I'm running unicorn and am trying to get zero downtime restarts working. So far it is all awesome sauce, the master process forks and starts 4 new workers, then kills the old one, everyone is happy. ...
Michael Shimmins's user avatar
21 votes
5 answers
7k views

How can I deploy 'private' gems that my apps can access but no one else can get?

I have several apps which I want to share some common code. I'd like to gem the code and share/version it across the apps that way, although I don't want to publish it to a public gem server. What ...
Kevin Bedell's user avatar
  • 13.4k
19 votes
6 answers
5k views

Rails app moved to production server gives "dump format error for symbol" error

I've just moved my rails app from the development to deployment server. I've installed passenger, but I wanted to try with rails s to make sure all was running fine (this is the first time I develop ...
user avatar
19 votes
8 answers
20k views

Rails - Invalid Authenticity Token After Deploy

We're using EngineYard Cloud to deploy our Ruby on Rails application. We are running Rails v2.3.3. EngineYard Cloud deploys to AWS instances in a manner similar to Capistrano. After each deploy, we'...
shedd's user avatar
  • 4,218
19 votes
4 answers
6k views

"Warm Up Cache" on deployment

I am wondering if anyone has any plugins or capistrano recipes that will "pre-heat" the page cache for a rails app by building all of the page cached html at the time the deployment is made, or ...
Scott Miller's user avatar
  • 2,298
18 votes
3 answers
27k views

Unicorn unable to write pid file

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 ...
Mike Filbin's user avatar
18 votes
6 answers
12k views

Most of my assets suddenly return 404 after a push to heroku

I have deployed this app (rails 3.2.11) a million times, I haven't messed with any settings, but now I'm greeted with this: Why did this happen out of the blue? My conents of application.rb include ...
dsp_099's user avatar
  • 5,961
18 votes
3 answers
8k views

DB management for Heroku apps

I'm fairly new to both Rails and Heroku but I'm seriously thinking of using it as a platform to deploy my Ruby/Rails applications. I want to use all the power of Heroku, so I prefer the "embedded" ...
zetarun's user avatar
  • 787
17 votes
2 answers
7k views

App pushed to heroku still shows standard index page

I went through the steps to install git and the heroku gem and successfully pushed my app to heroku. The problem is, it shows a standard "You're Riding Ruby on Rails" page even though the local app I ...
dsp_099's user avatar
  • 5,961
17 votes
2 answers
422 views

Deploy path doesn't work for Git Deploy Method in middleman-deploy

I am using middleman-blog and middleman-deploy. What I would like to do, is within the branch I am deploying to, I want the static files to be deployed to a subfolder within the repo (i.e. not the ...
marcamillion's user avatar
  • 33.6k
13 votes
3 answers
2k views

What is your version control and deployment workflow with Rails?

Especially when considering a fresh Rails project, what does your version control and deployment workflow look like? What tools do you use? I'm interested in answers for Mac, *nix and Windows work ...
Ben Hamill's user avatar
  • 2,691
12 votes
3 answers
12k views

Is it possible to change Passenger Ruby version without recompiling?

I tried changing the default ruby command to 1.9.2 but Passenger keeps running 1.8.7 Is Passenger compiled with Ruby embedded?
Zequez's user avatar
  • 3,449
12 votes
2 answers
2k views

How is Capistrano related to Rake?

I'm starting to read up on Capistrano after using Rake tasks to deploy apps for a long time. It's really striking how similar it is to Rake. A lot of parallel commands (like cap -T) and a lot of ...
Ethan's user avatar
  • 59.3k
11 votes
3 answers
11k views

Capistrano - can't deploy my database.yml

When I try to deploy my app with capistrano, I'll get this error: failed: "sh -c 'cp /var/www/my_app/releases/20120313115055/config/database.staging.yml /var/www/my_app/releases/...
user984621's user avatar
  • 47.7k
11 votes
5 answers
13k views

Setting environment variables with puppet

I'm trying to work out the best way to set some environment variables with puppet. I could use exec and just do export VAR=blah. However, that would only last for the current session. I also thought ...
Jake232's user avatar
  • 227
11 votes
1 answer
5k views

How can I trigger a Capistrano task from a different namespace than :deploy?

In my capistrano recipe, I have a namespace with different tasks: namespace :mystuff do task :mysetup do; ... end; task :mytask1 do; ... end; task :mytask2 do; ... end; task :mycleanup do; ......
Tom's user avatar
  • 14.2k
10 votes
6 answers
2k views

What deployment directories do you use for Rails applications (deploying to a debian box)?

I wonder what's the best deployment directory for Rails apps? Some developers use directories such as /u/apps/#{appname}. Are there any advantages when using /u/apps/#{appname} instead of /var/www/#{...
Christoph Schiessl's user avatar
10 votes
2 answers
3k views

Some Capistrano deployment hooks not working

I am using Capistrano v2.14.2 and trying to use the before and after hooks for deploy:create_symlink, but none of them seem to firing... I was getting this Warning: [Deprecation Warning] This API ...
Michael's user avatar
  • 3,608
9 votes
3 answers
2k views

Why RVM System Wide?

I have set up a rails production environment with: * The rails apps under a user called deploy. * The deploy user is just a regular user NOT having sudo permissions. * The deploy user uses its own ...
Pratik Khadloya's user avatar
9 votes
5 answers
2k views

Should I deploy my Ruby on Rails application on Heroku [closed]

A little about myself. I am 24 years old, I graduated from NC State with a Master's in Analytics last year. Statistics, mathematics, that kind of thing. I don't have a strong programming background, ...
Eric's user avatar
  • 1,235
9 votes
2 answers
6k views

Distributing ruby application as standalone in linux and windows

I have developed ruby application (desktop application) on version 1.9.1 with few gems(qtbindings). Now i would like to distribute my application to users as stand alone.I would like to distribute my ...
sundar_ima's user avatar
  • 3,808
8 votes
6 answers
7k views

Referencing the current server in Capistrano task

How would I reference the current server in a Capistrano task? I want to curl a local file to clear the APC cache but the server does not listen on localhost so I need the server's IP address. For ...
Brad Dwyer's user avatar
  • 6,444
8 votes
4 answers
13k views

Why am I getting this Passenger error Could not find rake-0.9.2.2 in any of the sources?

I just created a new empty Rails app, it's almost empty. I created it just to try to pinpoint the problem, but I'm getting the following error. I'm using Rails 3.1.0 and Ruby 1.9.2 Error message: ...
leonel's user avatar
  • 10.2k
8 votes
1 answer
2k views

"error 28 from storage engine" during Rails deployment

I have been deploying fine with no problems. Today I got this error... rake aborted! Mysql::Error: Got error 28 from storage engine: describe active_admin_comments Why? How?
leonel's user avatar
  • 10.2k
8 votes
1 answer
5k views

Deploying sinatra app (with config.ru) on heroku cedar stack

I'm trying to refactor my sinatra code to separate my main file into separate files, using some tips from this response, and I'm having troubles deploying to heroku. Previously I didn't have a config....
zlog's user avatar
  • 3,316
8 votes
1 answer
1k views

Permanently switching user in Capistrano 3 (separate authorization & deploy)

We have following pattern in server management - all users do have their own user, but deploy is fully performed by special deploy user, without direct login possibility. We used this method in ...
Meredian's user avatar
  • 950
8 votes
2 answers
1k views

Capistrano 3.0 — How securely prompt for password now?

Prior to 3.0 there was a way to do that: # ... set :mysql_password, proc { Capistrano::CLI.password_prompt "Gimme remote database server password. Don't worry, I won't tell anyone: " } # ... ...
jibiel's user avatar
  • 8,225
7 votes
3 answers
12k views

rbenv: version `2.2.3' is not installed (set by RBENV_VERSION environment variable)

When I run a deploy script, I'm having errors: [cb123fad] rbenv: version `2.2.3' is not installed (set by RBENV_VERSION environment variable) DEBUG [cb123fad] (Backtrace restricted to imported tasks)...
Askar's user avatar
  • 5,814
7 votes
2 answers
4k views

Rails: is Passenger Standalone suitable for production deployment?

The question title pretty much sums it up... I haven't been able to find any good resources that outline the pros / cons of using Phusion Passenger Standalone for Rails App Deployment. How does it ...
Andrew's user avatar
  • 42.9k
7 votes
3 answers
1k views

can we rename our Rails folders and not have any side effects?

when starting Ruby on Rails programming, I will use rails first rails second and try out things in these "first" and "second" projects but as they get more mature i want to check them into SVN ...
nonopolarity's user avatar
7 votes
2 answers
3k views

Can't deploy rails4 project with capistrano. rbenv: version `2.0.0' is not installed

I am getting error while deploying my rails4 app to VPS. The error I'm getting is rbenv: version `2.0.0' is not installed But using "ruby -v" I get ruby 2.0.0p0 (2013-02-24 revision 39474) [i686-...
Andrey Yasinishyn's user avatar
7 votes
4 answers
5k views

webistrano alternatives? [closed]

We are looking for a automated remote deployment system for our Rails deployments. Are there any good alternatives to Webistrano. We want try out first and select which will best suit our ...
nitin's user avatar
  • 293
7 votes
3 answers
4k views

Capistrano 3 / SSHKit write to a file in custom task

I want mark the current deployed directory with my release number. I tried this approach: Get locally the app version, store it into a variable, and on the remote host, store it in a file. ...
astropanic's user avatar
  • 10.9k
7 votes
1 answer
300 views

Streamlined Ruby code deployments

Here's my imagined development and deployment process: Create project directory my_project. Install the required Ruby version into it. Install the required gems. Write some code. Use fpm to package ...
David K.'s user avatar
  • 6,303
6 votes
2 answers
5k views

Robust way to deploy a Rack application (Sinatra)

I'm looking for a robust way to deploy a Rack application (in this case a Sinatra app). Requests will take a little time (0.25-0.5 sec waiting on proxied HTTP requests) and there may be a decent ...
Daniel Beardsley's user avatar
6 votes
1 answer
5k views

Why is capistrano acting up like this?

I am having an issue with my deploy i ran cap deploy and got this Warning: Permanently added 'github.com,207.97.227.239' (RSA) to the list of known hosts. ** [174.143.150.79 :: out] Permission ...
Matt Elhotiby's user avatar
6 votes
2 answers
693 views

capistrano-env file permissions

I use gem capistrano-env and found a small problem. My deploy script is: Capistrano::Env.use do |env| env.add 'DB_DSN', 'mysql:host=localhost;dbname=dbname' env.add 'DB_USER', 'user' env.add '...
stepozer's user avatar
  • 1,163
6 votes
3 answers
5k views

Capistorano deploy SSHKit::Runner::ExecuteError : rake exit status: 1

Thank you for checking out my issue. I have an error with the capistorano right now. Have been struggling with this error for few days, so please help me out. I am using the Active storage in the app. ...
sinzanmono46's user avatar
6 votes
3 answers
1k views

How to handle one-off deployment tasks with capistrano?

I am currently trying to automate the deployment process of our rails app as much as possible, so that a clean build on the CI server can trigger an automated deployment on a test server. But I have ...
AGraefe's user avatar
  • 137

1
2 3 4 5
12