Explorar el Código

Fix deploy script

master
Dylan Baker hace 4 años
padre
commit
cb1717ca65
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      Rakefile

+ 2
- 2
Rakefile Ver fichero

@@ -32,6 +32,6 @@ task 'deploy' do
32 32
   puts `rsync -rv ./Rakefile #{username}@#{hostname}:/var/www/vlv-search/`
33 33
   puts `rsync -rv ./Gemfile #{username}@#{hostname}:/var/www/vlv-search/`
34 34
   puts `rsync -rv ./Gemfile.lock #{username}@#{hostname}:/var/www/vlv-search/`
35
-  puts `ssh #{username}@#{hostname} 'cd /var/www/vlv-search; rake build'`
36
-  puts `ssh #{username}@#{hostname} '~/restart-unicorn'`
35
+  puts `ssh -t #{username}@#{hostname} 'bash -ic ". .profile; cd /var/www/vlv-search; rake build;"'`
36
+  puts `ssh -t #{username}@#{hostname} 'bash -ic ". .profile; ~/restart-unicorn"'`
37 37
 end

Loading…
Cancelar
Guardar