from fabric.api import env, cd, run


def prod():
  env.user = 'joshblum'
  env.gateway = 'tre.ef.technion.ac.il'
  env.forward_agent = True
  env.hosts = ['gpu-os02.ef.technion.ac.il']
  env.key_filename = '~/.ssh/id_rsa.pub'
  env.server_path = '~/eeg-spectrogram'
  env.python_path = '~/.virtualenvs/eeg-spectrogram'
  return


def deploy():
  with cd(env.server_path):
    run('git pull --rebase origin master')
    run('make install')
    run('make prod-run')

@@ -161,9 +161,9 @@
 -os0
-2
+5
 .ef.
@@ -409,16 +409,50 @@
 aster')%0A
+    run('workon eeg-spectrogram')%0A
     run(

correct host