capistrano

Rails - Nginx needs to be restarted after deploying with Capistrano?

一笑奈何 提交于 2019-12-31 14:26:32
问题 I am using Capistrano to deploy my Rails application. whenever I deploy, changes would not be reflected on the browser, and I still need to restart nginx to update the site (running sudo /etc/init.d/nginx restart). I'm not really sure why but isn't it supposed to be updated after restarting application? (using touch /app/tmp/restart.txt) Here's my deploy.rb require "rvm/capistrano" set :rvm_ruby_string, 'ruby-1.9.3-p194@app_name' set :rvm_type, :user require "bundler/capistrano" set

Delayed job wont start using Capistrano

与世无争的帅哥 提交于 2019-12-31 13:56:40
问题 I cannot start delayed job process using a capistrano recipe. Here's the error I am getting. /usr/local/lib/ruby/gems/1.9.1/gems/delayed_job-2.1.1/lib/delayed/command.rb:62:in `mkdir': File exists - /my_app/server/releases/20101120001612/tmp/pids (Errno::EEXIST) Here's the capistrano code (NOTE-: I have tried both start/restart commands) after "deploy:restart", "delayed_job:start" task :start, :roles => :app do run "cd #{current_path}; RAILS_ENV=#{rails_env} script/delayed_job -n 2 start" end

Delayed job wont start using Capistrano

人盡茶涼 提交于 2019-12-31 13:56:19
问题 I cannot start delayed job process using a capistrano recipe. Here's the error I am getting. /usr/local/lib/ruby/gems/1.9.1/gems/delayed_job-2.1.1/lib/delayed/command.rb:62:in `mkdir': File exists - /my_app/server/releases/20101120001612/tmp/pids (Errno::EEXIST) Here's the capistrano code (NOTE-: I have tried both start/restart commands) after "deploy:restart", "delayed_job:start" task :start, :roles => :app do run "cd #{current_path}; RAILS_ENV=#{rails_env} script/delayed_job -n 2 start" end

/usr/bin/env ruby no such file or directory: Using capistrano 3, capistrano/rbenv, capistrano/bundler and capistrano/rails (using rails 4)

梦想与她 提交于 2019-12-31 10:32:04
问题 I'm using capistrano, capistrano/rbenv, capistrano/bundler and capistrano/rails. I get this error in the step where capistrano compiles the assets: DEBUG [49a50df6] /usr/bin/env: DEBUG [49a50df6] ruby DEBUG [49a50df6] : No such file or directory DEBUG [49a50df6] In the production server /usr/bin/env ruby -v is correct. I'm aware of this: why-does-something-work-in-my-ssh-session-but-not-in-capistrano But I can't get it to work. This is my Capfile : # Load DSL and Setup Up Stages require

/usr/bin/env ruby no such file or directory: Using capistrano 3, capistrano/rbenv, capistrano/bundler and capistrano/rails (using rails 4)

老子叫甜甜 提交于 2019-12-31 10:31:11
问题 I'm using capistrano, capistrano/rbenv, capistrano/bundler and capistrano/rails. I get this error in the step where capistrano compiles the assets: DEBUG [49a50df6] /usr/bin/env: DEBUG [49a50df6] ruby DEBUG [49a50df6] : No such file or directory DEBUG [49a50df6] In the production server /usr/bin/env ruby -v is correct. I'm aware of this: why-does-something-work-in-my-ssh-session-but-not-in-capistrano But I can't get it to work. This is my Capfile : # Load DSL and Setup Up Stages require

Capifony setfacl permissions: “Operation not permitted”

非 Y 不嫁゛ 提交于 2019-12-31 02:08:37
问题 I have a user didongo (user & group didongo ), and the nginx server (user & group www-data ). I've setup Capifony to login as didongo user: the first time I deploy setfacl command works ok (while the logs folder is empty). But after the web application, served by nginx, has generated some logs (prod.log) the very next deploy fails, with an setfacl error. I'm sure I'm doing a noob error with the permissions between the user and the web server, but I don't see what error. I see that didongo

Undefined method `instance' for Capistrano::Configuration:Class

我的未来我决定 提交于 2019-12-30 08:07:31
问题 I am trying to get Capistrano up and running for the first time in a rails app. I have a linux server running Ubuntu 12.04, nginx, unicorn and rails, however, I seem to be running into a few issues. I am also using Capistrano 3.0.0, rails 3.2.14, bundler 1.4.0 & ruby 1.9.3p448 using RVM. I only have a production stage set up and at this point in time and I'm only concerned with Capistrano communicating with my server and pushing my code from github ( No migrations and bundling etc just yet).

capistrano v3 deploy git repository and its submodules

浪尽此生 提交于 2019-12-30 05:23:30
问题 With capistrano v2 submodules can be includes in the deploy by using option: set :git_enable_submodules, 1 In v3 this does not seem to work. Is this option still supported or is there a new way to reach the same goal? 回答1: As you can see in the Capistrano source code https://github.com/capistrano/capistrano/blob/master/lib/capistrano/tasks/git.rake#L34 and https://github.com/capistrano/capistrano/blob/master/lib/capistrano/tasks/git.rake#L56 it uses git archive to check out the code into the

What's the best way to deploy a JRuby on Rails application to Tomcat?

徘徊边缘 提交于 2019-12-29 18:03:41
问题 I'm looking at ways to deploy a Ruby on Rails app (running on JRuby) to a Tomcat instance for testing. The tomcat instance is running on a Solaris server that I can SSH to. I've looked at using Capistrano, but there doesn't seem to be a lot out there about using it to deploy to Tomcat, or even about running it under JRuby, and I keep hitting bugs in Capistrano due to the Windows/JRuby environment my PC is running (yeah, it's corporate - not my choice, but I've got to live with it). I'm using

What's the best way to deploy a JRuby on Rails application to Tomcat?

人盡茶涼 提交于 2019-12-29 18:03:13
问题 I'm looking at ways to deploy a Ruby on Rails app (running on JRuby) to a Tomcat instance for testing. The tomcat instance is running on a Solaris server that I can SSH to. I've looked at using Capistrano, but there doesn't seem to be a lot out there about using it to deploy to Tomcat, or even about running it under JRuby, and I keep hitting bugs in Capistrano due to the Windows/JRuby environment my PC is running (yeah, it's corporate - not my choice, but I've got to live with it). I'm using