capistrano

Upgraded to Ruby version 2.1.2, passenger still on 1.9.3

左心房为你撑大大i 提交于 2021-02-07 03:08:46
问题 How do I update the Ruby Version used by Passenger whenever I update Ruby and its Gemlist using RVM and Capistrano? What is the best way to check if my app is using the right ruby version and gemset? I have a Rails app running on a Linode server (Ubuntu), with NGinx and Passenger. Before it was running without any problem. Previously my app was running Ruby on Rails 3.2.16 with the Ruby 1.9.3-p194 I use RVM to manage ruby versions both locally and on the server. After I installed Ruby-2.1.2

Upgraded to Ruby version 2.1.2, passenger still on 1.9.3

时光怂恿深爱的人放手 提交于 2021-02-07 03:06:06
问题 How do I update the Ruby Version used by Passenger whenever I update Ruby and its Gemlist using RVM and Capistrano? What is the best way to check if my app is using the right ruby version and gemset? I have a Rails app running on a Linode server (Ubuntu), with NGinx and Passenger. Before it was running without any problem. Previously my app was running Ruby on Rails 3.2.16 with the Ruby 1.9.3-p194 I use RVM to manage ruby versions both locally and on the server. After I installed Ruby-2.1.2

deploy with capistrano using a pem file

爱⌒轻易说出口 提交于 2021-02-05 13:44:44
问题 We have a EC2 instance, and our capistrano setup requires ssh. To connect through ssh normally, I use a .pem file for connecting to the server. how do I utilize this .pem file when using capistrano to deploy? 回答1: In deploy.rb set these configuration values: default_run_options[:pty] = true ssh_options[:forward_agent] = true ssh_options[:auth_methods] = ["publickey"] ssh_options[:keys] = ["/path/to/key.pem"] For Capistrano 3 use: set :pty, true set :ssh_options, { forward_agent: true, auth

deploy with capistrano using a pem file

五迷三道 提交于 2021-02-05 13:43:41
问题 We have a EC2 instance, and our capistrano setup requires ssh. To connect through ssh normally, I use a .pem file for connecting to the server. how do I utilize this .pem file when using capistrano to deploy? 回答1: In deploy.rb set these configuration values: default_run_options[:pty] = true ssh_options[:forward_agent] = true ssh_options[:auth_methods] = ["publickey"] ssh_options[:keys] = ["/path/to/key.pem"] For Capistrano 3 use: set :pty, true set :ssh_options, { forward_agent: true, auth

deploy with capistrano using a pem file

家住魔仙堡 提交于 2021-02-05 13:43:00
问题 We have a EC2 instance, and our capistrano setup requires ssh. To connect through ssh normally, I use a .pem file for connecting to the server. how do I utilize this .pem file when using capistrano to deploy? 回答1: In deploy.rb set these configuration values: default_run_options[:pty] = true ssh_options[:forward_agent] = true ssh_options[:auth_methods] = ["publickey"] ssh_options[:keys] = ["/path/to/key.pem"] For Capistrano 3 use: set :pty, true set :ssh_options, { forward_agent: true, auth

Why does Capistrano deployment fail at assets:precompile without error?

末鹿安然 提交于 2021-01-28 01:13:23
问题 I've tried everything I could think of, but I can't get deployment to work. The app needs to deploy to a VPS hosted by Alwaysdata and running ruby 2.6.2, using Capistrano for deployment. It's a Rails 6.0.2.2 application, using webpack for JS and sprockets for legacy scripts, all images and CSS. # On local machine (MacOS) $ bundle exec cap production deploy 00:00 git:wrapper 00:01 git:check 00:03 deploy:check:directories 00:03 deploy:check:linked_dirs 00:03 deploy:check:make_linked_dirs 00:05

Why do I need to precompile Rails assets on app servers and not web servers only?

生来就可爱ヽ(ⅴ<●) 提交于 2021-01-27 07:08:05
问题 I'm deploying a simple Rails app to this small ubuntu precise64 server setup : * 1 web server running nginx * 2 app servers running unicorn * 1 db server running postgresql My servers are provisionned with Puppet and I'm pushing the app with capistrano. My Capfile load 'deploy' # Uncomment if you are using Rails' asset pipeline load 'deploy/assets' load 'config/deploy' # remove this line to skip loading any of the default tasks The deploy.rb file is super simple # Execute "bundle install"

Rails 6 + Capistrano - No such puma.sock file

試著忘記壹切 提交于 2021-01-05 07:24:41
问题 please, I have a giant problem for more than 10 hours. Whenever I run my application deployment in Rails, with Capistrano and Puma, and I run a restart of nginx, I see this error when I try to access my web: enter image description here When I access my nginx logs, I see the following error: 2020/12/29 04:09:50 [crit] 9536#9536: *73 connect() to unix:///home/ubuntu/apps/my_app/shared/tmp/sockets/my_app-puma.sock failed (2: No such file or directory) while connecting to upstream, client:

`puma:restart' invoke twice but i only call it once on my deploy app via Capistrano?

随声附和 提交于 2020-08-23 01:09:45
问题 I tried to deploy Rails app to the server via Capistrano. This is my code on deploy.rb set :repo_url, 'git@bitbucket.org:varisdaOfficial/insurance_site.git' set :application, 'insurance_code' set :user, 'deploy' set :puma_threads, [4, 16] set :puma_workers, 0 set :pty, true set :use_sudo, false set :stage, :production set :deploy_via, :remote_cache set :deploy_to, "/home/#{fetch(:user)}/apps/#{fetch(:application)}" set :puma_bind, "unix://#{shared_path}/tmp/sockets/#{fetch(:application)}-puma