capistrano3

cap deploy + rbenv: bundle: command not found

喜你入骨 提交于 2019-12-02 05:18:33
I am following https://gorails.com/deploy/ubuntu/16.04 I am running : "bundle exec cap production deploy" and getting the following error: ✔ 10 deploy@107.170.84.18 0.289s 00:21 bundler:install 01 $HOME/.rbenv/bin/rbenv exec bundle install --path /home/deploy/deploy_test1/shared/bundle --without development test --deployment --q… 01 rbenv: bundle: command not found 01 01 The `bundle' command exists in these Ruby versions: 01 2.4.0 01 (Backtrace restricted to imported tasks) cap aborted! SSHKit::Runner::ExecuteError: Exception while executing as deploy@107.170.84.18: bundle exit status: 127

Capistrano 3 assets:precompile takes hours. Stops at css file

坚强是说给别人听的谎言 提交于 2019-12-01 16:41:36
Just as it says, I can't get capistrano 3 to do assets:precompile correctly. Even after hours, it still says writing to the .css file on the server. UPDATE: I was playing around and I tried a m1.medium. Same thing happened when it got to a certain point it simply stopped precompiling. Not errors are thrown, the cursor simply flashes. It looks like it is still working, as it just says: I, [2013-12-31T01:18:45.210416 #31413] INFO -- : Writing /var/www/app/releases/20131231011622/public/assets/application-998b176a776d6aff56fce8af9ca0d861.css When I look at the cpu usage from any instance It looks

cap aborted! SSHKit::Runner::ExecuteError: Exception while executing on host

霸气de小男生 提交于 2019-11-30 17:57:15
I'm trying to deploy code with Capistrano 3 to Ubuntu server from GIT repository, but I'm getting this error. ========================================================================== Here is my Gemfile. gem 'capistrano', '~> 3.1.0' #//Use unicorn as the app server gem 'unicorn' #// Use Capistrano for deployment group :development do gem 'capistrano-rails' gem 'capistrano-bundler' gem 'capistrano-rbenv', "~> 2.0" end source 'https://rubygems.org' ========================================================================== #deploy.rb lock '3.1.0' #// Define the name of the application set

Capistrano 3 execute within a directory

佐手、 提交于 2019-11-30 13:08:42
问题 I'm trying to write a task for Capistrano 3 that involves executing 'composer install' within the directory of the current release. It looks something like this: namespace :composer do desc 'Install dependencies with Composer' task :install do on roles(:web) do within release_path do execute "#{fetch(:composer_command)} install" end end end end composer_command is set in the staging and production files - in my particular case to php /home/user/composer.phar For some reason this command does

How to run shell commands on server in Capistrano v3?

☆樱花仙子☆ 提交于 2019-11-30 10:17:04
问题 I'm new to Capistrano and I've tried using Capistrano's DSL to run shell commands on the server ('run', 'execute', etc.), but it appears that it was deprecated. After searching and searching for a functional equivalent, I still am lost. Current code: desc 'Do something' task :do_something execute 'echo sometext' end Output: cap aborted! undefined method `execute' for main:Object /Users/Justin/Dropbox/xxxx/xxxx/xxxx/Capfile:45:in `block (2 levels) in <top (required)>' /Users/Justin/.rvm/gems

Capistrano 3 execute within a directory

若如初见. 提交于 2019-11-30 06:14:24
I'm trying to write a task for Capistrano 3 that involves executing 'composer install' within the directory of the current release. It looks something like this: namespace :composer do desc 'Install dependencies with Composer' task :install do on roles(:web) do within release_path do execute "#{fetch(:composer_command)} install" end end end end composer_command is set in the staging and production files - in my particular case to php /home/user/composer.phar For some reason this command does not actually run in the current release directory, but instead runs in the parent directory (containing

Capistrano error tar: This does not look like a tar archive

拈花ヽ惹草 提交于 2019-11-30 04:08:31
INFO [050fe961] Running mkdir -p /home/rails/rails- capistrano/releases/20140114234157 on staging-rails DEBUG [050fe961] Command: cd /home/rails/rails-capistrano/repo && ( PATH=/opt/ruby/bin:$PATH GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/rails/git-ssh.sh mkdir -p /home/rails/rails-capistrano/releases/20140114234157 ) INFO [050fe961] Finished in 0.142 seconds with exit status 0 (successful). INFO [2dea2fe5] Running git archive feature/Capistrano | tar -x -C /home/rails/rails-capistrano/releases/20140114234157 on staging-rails DEBUG [2dea2fe5] Command: cd /home/rails/rails-capistrano/repo && ( PATH=

cap aborted! SSHKit::Runner::ExecuteError: Exception while executing on host

丶灬走出姿态 提交于 2019-11-30 02:48:34
问题 I'm trying to deploy code with Capistrano 3 to Ubuntu server from GIT repository, but I'm getting this error. ========================================================================== Here is my Gemfile. gem 'capistrano', '~> 3.1.0' #//Use unicorn as the app server gem 'unicorn' #// Use Capistrano for deployment group :development do gem 'capistrano-rails' gem 'capistrano-bundler' gem 'capistrano-rbenv', "~> 2.0" end source 'https://rubygems.org' =============================================

SSH Agent Forwarding not working

邮差的信 提交于 2019-11-29 20:18:58
I'm having an hard time trying to configure Capistrano 3.1 to deploy an app hosted on Github. I'm following Capistrano Documentation and I have successfully completed the first step (SSH keys from workstation to servers) and on the second one (From our servers to the repository host) I'm able to successfully run ssh -A deploy@one-of-my-servers.com 'git ls-remote git@github.com:my_user/my_repo.git' : 18f38afz261df35d462f7f4e2ca847d22f148a06 HEAD 18f38afz261df35d462f7f4e2ca847d22f148a06 refs/heads/master however, ssh deploy@one-of-my-servers.com 'git ls-remote git@github.com:my_user/my_repo.git'

How to run shell commands on server in Capistrano v3?

孤者浪人 提交于 2019-11-29 19:34:54
I'm new to Capistrano and I've tried using Capistrano's DSL to run shell commands on the server ('run', 'execute', etc.), but it appears that it was deprecated. After searching and searching for a functional equivalent, I still am lost. Current code: desc 'Do something' task :do_something execute 'echo sometext' end Output: cap aborted! undefined method `execute' for main:Object /Users/Justin/Dropbox/xxxx/xxxx/xxxx/Capfile:45:in `block (2 levels) in <top (required)>' /Users/Justin/.rvm/gems/ruby-2.0.0-p247/bundler/gems/capistrano-2dc1627838f9/lib/capistrano/application.rb:12:in `run' /Users