Method: Inploy::Templates::Locaweb#remote_setup

Defined in:
lib/inploy/templates/locaweb.rb

#remote_setupObject



8
9
10
# File 'lib/inploy/templates/locaweb.rb', line 8

def remote_setup
  run "rm -Rf #{tmp_path} && git clone . #{tmp_path} && tar czf - #{tmp_path} | ssh #{user}@#{host} 'tar xzfv - -C ~/ && mv ~#{tmp_path} #{path}/ && cd #{application_path} && rake inploy:local:setup RAILS_ENV=#{environment} environment=#{environment}'"
end