capistrano

Unable to start unicorn on port 80 using capistrano

微笑、不失礼 提交于 2019-12-11 13:11:03
问题 cap production unicorn:start fails with the following error, trying to start my rails app on port 80. F, [2013-06-14T04:33:51.420113 #13986] FATAL -- : error adding listener addr=0.0.0.0:80 /home/ec2-user/apps/bdr_prod/shared/bundle/ruby/2.0.0/gems/unicorn-4.6.2/lib/unicorn/socket_helper.rb:147:in `initialize': Permission denied - bind(2) (Errno::EACCES) from /home/ec2-user/apps/bdr_prod/shared/bundle/ruby/2.0.0/gems/unicorn-4.6.2/lib/unicorn/socket_helper.rb:147:in `new' from /home/ec2-user

“Please require this file from within a Capistrano recipe” error while deploying Rails 3 app on EC2 using Capistrano

随声附和 提交于 2019-12-11 12:35:40
问题 While deploying a Rails 3 application we are getting following error. Please help to fix this issue. $ cap deploy triggering load callbacks * 2015-03-17 19:25:22 executing `deploy' * 2015-03-17 19:25:22 executing `deploy:update' ** transaction: start * 2015-03-17 19:25:22 executing `deploy:update_code' updating the cached checkout on all servers executing locally: "git ls-remote git@github.com:BoTreeConsultingTeam/IntegrityMatters.git master" command finished in 3579ms * executing "if [ -d

Capistrano Deleting Paperclip Images

烂漫一生 提交于 2019-12-11 12:07:13
问题 For some reason Capistrano deletes all the images in my database every time I cap all the images get removed from all the users. Typically what I have done is have to refill the databased with the same images that had been delete by capistrano. I've attached my deploy.rb file, can someone give me some insight. require "bundler/capistrano" set :rvm_ruby_string, '1.9.3p429' set :rvm_type, :user set :user, "" set :password, "" set :domain, "" set :applicationdir, "" set :scm, :git set

Bundle install --deployment not working with “gcc: Permission denied”

拜拜、爱过 提交于 2019-12-11 11:58:28
问题 I've been setting up my server to run a Rails application on it, and recently started configuring Capistrano for deployment. The deployment itself seems to be fairly in line, but it fails when it tries to run bundle install --deployment . Excerpt from the logs: Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /usr/local/bin/ruby extconf.rb creating Makefile make compiling crypt_blowfish.c make: execvp: gcc: Permission denied make: *** [crypt_blowfish.o] Error

Rails 5.2 with master.key Digital Ocean deployment: ActiveSupport::MessageEncryptor::InvalidMessage: ActiveSupport::MessageEncryptor::InvalidMessage

╄→гoц情女王★ 提交于 2019-12-11 11:25:24
问题 I have migrated my Ruby on Rails application from Rails 5.1.2 to Rails 5.2.0 to use the encrypted secrets. Application is successfully deployed to Digital Ocean Ubuntu Server. But when I go in browser to access, it shows the following log. ActiveSupport::MessageEncryptor::InvalidMessage: ActiveSupport::MessageEncryptor::InvalidMessage /home/deploy/apps/GeekyCricket/shared/bundle/ruby/2.4.0/gems/activesupport-5.2.0/lib/active_support/message_encryptor.rb:206:in `rescue in _decrypt' /home

Capistrano doesn't set RAILS_ENV for bundler

隐身守侯 提交于 2019-12-11 11:08:02
问题 In my Gemfile I specify what branch to use on a git repository based on RAILS_ENV. However when Capistrano deploys, it runs the bundle install command - and since it's run through a shell, the proper environment (staging) isn't set. It defaults to development and gives me an error stating that there's a mismatch between Gemfile.lock and what is installed. You are trying to install in deployment mode after changing your Gemfile. Run bundle install elsewhere and add the updated Gemfile.lock to

Ruby on Rails Capistrano 'Could not locate Gemfile' error when running cap production deploy:initial[]

╄→гoц情女王★ 提交于 2019-12-11 10:44:00
问题 I'm trying to launch a RoR application and get the following error when running cap production deploy:initial[] I'm very new to RoR and the setup in general so I cannot provide more detail but am able to answer questions. INFO [ac02eabc] Running ~/.rvm/bin/rvm default do bundle install --path /home/deploy/apps/Interface/shared/bundle --without development test --deployment --quiet on 178.62.51.103 DEBUG [ac02eabc] Command: cd /home/deploy/apps/Interface/releases/20151022000628 && ~/.rvm/bin

cannot load such file — capistrano/setup (LoadError)

非 Y 不嫁゛ 提交于 2019-12-11 10:38:54
问题 I am following https://gorails.com/deploy/ubuntu/16.04 Initially i have one version of capistrano 3.8.1 and my problem initially is: nicoara@ubuntu:~/deploy_test$ cap install STAGES=production /home/nicoara/.rbenv/versions/2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- capistrano/cli (LoadError) i solve this with "gem install rvm-capistrano" which installs another version of capistrano as well, 2.15.6, and now the error is: nicoara@ubuntu:~

Capistrano deploy error while deploying to Ubuntu server

六眼飞鱼酱① 提交于 2019-12-11 09:55:30
问题 I was following this blog, to set up my rails server, and after I ran this command, I am getting the following error cap production deploy:initial --trace cap aborted! SSHKit::Runner::ExecuteError: Exception while executing on host 104.197.138.17: connection closed by remote host /home/vagrant/.rvm/gems/ruby-2.1.7/gems/sshkit-1.7.1/lib/sshkit/runners/parallel.rb:16:in `rescue in block (2 levels) in execute' /home/vagrant/.rvm/gems/ruby-2.1.7/gems/sshkit-1.7.1/lib/sshkit/runners/parallel.rb:12

Images not showing after deployment with Passenger/Capistrano to Nginx server

霸气de小男生 提交于 2019-12-11 08:52:34
问题 Hi I'm deploying my first Rails app to Ubuntu 16 server using Capistrano everything went smooth except the images are not showing in the production environment. On the production server the images are located in this path : /myapp/current/public/assets But if I look at this in the browser my broken images links gives me this(see picture), this is a broken link for the header image. the strange thing is that there is a .svg file in the /myapp/current/public/assets which is showing up perfectly