Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/05/2015, 05:28
Deth
 
Fecha de Ingreso: febrero-2005
Mensajes: 9
Antigüedad: 20 años, 1 mes
Puntos: 0
Pregunta duda como hacer deploy ruby on rails

hola amigos, soy nuevo en ruby on rails, tengo mi aplicacion hecha funciona con mysql, ahora lo que quiero es que ruby me genere el codigo para yo subirlo a mi servidor apache, creo que para hacer eso hay que hacer un deploy para ello tengo la gema 'capistrano-rails' instalada por defecto en mi ruby ya que use railsinstaller para instalar el ruby on rails en mi windows 7, entonces lo configuro asi:

primero ejecuto el comando:

cap install STAGES=production

despues configuro:

\deploy\production.rb

Código:
server 'localhost:80', user: 'root', roles: %w{app db web}, user:"root", password: "123"
\config\deploy.rb

Código:
lock '3.4.0'

set :application, 'sistema'

set :deploy_to, '/var/www/sistema'

namespace :deploy do

  after :restart, :clear_cache do
    on roles(:web), in: :groups, limit: 3, wait: 10 do
    end
  end

end
despues ejecuto:

cap production deploy

y me manda el siguiente error:

INFO [044989ea] Running /usr/bin/env mkdir -p /tmp/sistema/ as root@localhost
DEBUG [044989ea] Command: /usr/bin/env mkdir -p /tmp/sistema/
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as root@localhost: conne
ction closed by remote host

Net::SSH::Disconnect: connection closed by remote host

EOFError: end of file reached

Tasks: TOP => git:check => git:wrapper
(See full trace by running task with --trace)
The deploy has failed with an error: Exception while executing as root@localhost
: connection closed by remote host

muchas gracias de antemano.

Última edición por Deth; 25/05/2015 a las 13:33