1. Mikhail Korobov
  2. django-fab-deploy

Commits

Mikhail Korobov  committed 6658e9c

ENV_BASE and SRC_BASE are gone

  • Participants
  • Parent commits c04de05
  • Branches default

Comments (0)

Files changed (2)

File fab_deploy/deploy.py

View file
 
 
 def make_virtualenv():
-    run('mkdir -p %s' % env.conf['ENV_BASE'])
-    run('mkdir -p %s' % env.conf['SRC_BASE'])
-    with cd(env.conf['ENV_BASE']):
+    run('mkdir -p envs')
+    run('mkdir -p src')
+    with cd('envs'):
         run('virtualenv --no-site-packages %s' % env.conf['INSTANCE_NAME'])
 
 

File fab_deploy/utils.py

View file
 
 def update_env():
     HOME_DIR = '/home/%s' % env.user
-    ENV_BASE, SRC_BASE = 'envs', 'src'
 
     if 'INSTANCE_NAME' not in env.conf:
         env.conf['INSTANCE_NAME'] = env.user
         PROCESSES = 1,
         THREADS = 5,
         HOME_DIR = HOME_DIR,
-        ENV_BASE = ENV_BASE,
-        SRC_BASE = SRC_BASE,
-        ENV_DIR = HOME_DIR + '/' + ENV_BASE + '/' + env.conf['INSTANCE_NAME'],
-        SRC_DIR = HOME_DIR + '/' + SRC_BASE + '/' + env.conf['INSTANCE_NAME'],
+        ENV_DIR = HOME_DIR + '/envs/' + env.conf['INSTANCE_NAME'],
+        SRC_DIR = HOME_DIR + '/src/' + env.conf['INSTANCE_NAME'],
         USER = env.user,
         HOST = env.hosts[0],
     )