windows - Deploying rails app Capistrano plenty ERRORS -
windows - Deploying rails app Capistrano plenty ERRORS -
i trying deploy rails application first time on vexxhost. using github source code management , capistrano.
here deploy file
require 'bundler/capistrano' require 'capistrano' require 'bundler' require 'capistrano-vexxhost' # business relationship settings ssh_options[:forward_agent] = true set :scm_command, "/home/user/opt/bin/git" set :local_scm_command,"git" set :user, "xxxxxxxx" set :password, "xxxxxxxxx" set :domain, "domain.com" set :mount_path,"/home/xxxxxxxx/xxxxxxx" set :application,"app name" set :scm, :git set :deploy_via, :copy set :repository, "git@github.com:xxxxx/xxxxxxx.git" default_run_options[:pty] = true
problem no 1)
as installed gem 'capistrano' gem 'capistrano-vexxhost' got next error when trying run application locally (it working before installing capistrano).
c:/ruby193/lib/ruby/gems/1.9.1/gems/capistrano-2.14.1/lib/capistrano/configuration/loading.rb:18:in `instance': please require file within capistrano recipe (loaderror) c:/ruby193/lib/ruby/gems/1.9.1/gems/capistrano-vexxhost-1.0.3/lib/capistrano-vexxhost/capistrano_integration.rb:6:in `<top (required)>' c:/ruby193/lib/ruby/gems/1.9.1/gems/capistrano-vexxhost-1.0.3/lib/capistrano-vexxhost.rb:2:in `require' c:/ruby193/lib/ruby/gems/1.9.1/gems/capistrano-vexxhost-1.0.3/lib/capistrano-vexxhost.rb:2:in `<top (required)>' c:/ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/runtime.rb:68:in `require' c:/ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/runtime.rb:68:in `block (2 levels) in require' c:/ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/runtime.rb:66:in `each' c:/ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/runtime.rb:66:in `block in require' c:/ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/runtime.rb:55:in `each' c:/ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/runtime.rb:55:in `require' c:/ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler.rb:128:in `require' c:/users/mummy/lagoads/config/application.rb:9:in `<top (required)>' c:/ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/commands.rb:53:in `require' c:/ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/commands.rb:53:in `block in <top (required)>' c:/ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/commands.rb:50:in `tap' c:/ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/commands.rb:50:in `<top (required)>' script/rails:6:in `require' script/rails:6:in `<main>'
note comment bundler.require line next code in application.rb file, runs doesn't recognize gems
if defined?(bundler) # if precompile assets before deploying production, utilize line bundler.require(*rails.groups(:assets => %w(development test))) # if want assets lazily compiled in production, utilize line # bundler.require(:default, :assets, rails.env) end
problem no 2) when type "cap deploy:check" on ruby command prompt next error.
problem no 3) when type "cap deploy:cold" on ruby command prompt next error
is there missing deploy.rb or there didnt do.
please need help, have been on problem long time. new deploying web applications , rails have been hard me
please help
problems 2 & 3 sec , 3rd problems result of git , tar not beingness in path. either not installed @ all, or path incomplete. see errors quoted below.
problem 2
'git' not found on local host 'tar' not found on local host
problem 3
no such file or directory git ls-remote...
problem 1
unfortunately have no reply #1. guess need add together capistrano
and/or capistrano-vexxhost
deploy.rb
.
windows git ruby-on-rails-3.1 github capistrano
Comments
Post a Comment