Я пытаюсь развернуть свое первое приложение на VPS ubuntu 12.10, используя capsitrano, и после видеозаписи RailsCasts «Развертывание на VPS».Развертывание первого приложения для VPS, борющегося с capistrano
Еще один вопрос: я не добавил конфигурацию nginx или конфигурационный файл unicorn. Могу ли я обойтись без них? (Я хочу конфиг Nginx консоли корыта.)
Моего deploy.rb файл
require "bundler/capistrano"
set :application, "picurwebaruhaz"
set :scm, "git"
set :repository, "git://github.com/gwuix2/picurwebaruhaz.git"
set :branch, "master"
set :user, "gwuix2"
set :deploy_to, "/home/#{user}/#{application}"
default_run_options[:pty] = true
# set :scm, :git # You can set :scm explicitly or Capistrano will make an intelligent guess based on known version control directory names
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
role :web, "198.211.117.84" # Your HTTP server, Apache/etc
role :app, "198.211.117.84" # This may be the same as your `Web` server
role :db, "198.211.117.84", :primary => true # This is where Rails migrations will run
role :db, "198.211.117.84"
# if you want to clean up old releases on each deploy uncomment this:
after "deploy:restart", "deploy:cleanup"
# if you're still using the script/reaper helper you will need
# these http://github.com/rails/irs_process_scripts
# If you are using Passenger mod_rails uncomment this:
namespace :deploy do
task :start do ; end
task :stop do ; end
task :restart, :roles => :app, :except => { :no_release => true } do
run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
end
end
Я получаю следующее сообщение об ошибке:
* executing "cd /home/gwuix2/picurwebaruhaz/releases/20130322113243 && bundle install --gemfile /home/gwuix2/picurwebaruhaz/releases/20130322113243/Gemfile --path /home/gwuix2/picurwebaruhaz/shared/bundle --deployment --quiet --without development test"
servers: ["198.211.117.84"]
[198.211.117.84] executing command
** [out :: 198.211.117.84] sh: 1: bundle: not found
command finished in 357ms
*** [deploy:update_code] rolling back
* executing "rm -rf /home/gwuix2/picurwebaruhaz/releases/20130322113243; true"
servers: ["198.211.117.84"]
[198.211.117.84] executing command
command finished in 384ms
failed: "sh -c 'cd /home/gwuix2/picurwebaruhaz/releases/20130322113243 && bundle install --gemfile /home/gwuix2/picurwebaruhaz/releases/20130322113243/Gemfile --path /home/gwuix2/picurwebaruhaz/shared/bundle --deployment --quiet --without development test'" on 198.211.117.84
Edit:
Вот мое приложение : APP ON GITHUB https://github.com/gwuix2/picurwebaruhaz
Редактировать_2: Если я SSH на сервер и запустить $ жемчужину установить Bundler, он устанавливает, но когда я бегу:
[email protected]:~$ sudo gem install bundler sudo: gem: command not
found
какие-либо предложения?
Не могу понять это сам.
Вы, кажется, не имеют Bundler камень, установленный на сервере. SSH на сервер и запустить «gem install bundler» и повторите попытку. –
такая же ошибка –
Я думаю о чем-то вроде того, что мне нужно сделать что-то выполнимое, может быть? –