Add support for SCL python27.
This commit is contained in:
Родитель
382d86f1cf
Коммит
c4ceacf81d
|
@ -1,16 +1,18 @@
|
|||
import os
|
||||
import fabdeploytools.envs
|
||||
import deploysettings as settings
|
||||
from os.path import join as pjoin
|
||||
|
||||
from fabric.api import (env, execute, lcd, local, parallel,
|
||||
run, roles, task)
|
||||
|
||||
import fabdeploytools.envs
|
||||
from fabdeploytools import helpers
|
||||
|
||||
import deploysettings as settings
|
||||
|
||||
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings_local'
|
||||
|
||||
SCL_NAME = getattr(settings, 'SCL_NAME', False)
|
||||
if SCL_NAME:
|
||||
helpers.scl_enable(SCL_NAME)
|
||||
|
||||
env.key_filename = settings.SSH_KEY
|
||||
fabdeploytools.envs.loadenv(settings.CLUSTER)
|
||||
|
||||
|
|
|
@ -3,6 +3,10 @@
|
|||
MAILTO=amo-developers@mozilla.org
|
||||
DJANGO_SETTINGS_MODULE='settings_local'
|
||||
|
||||
# Enable python27
|
||||
LD_LIBRARY_PATH=/opt/rh/python27/root/usr/lib64
|
||||
PATH=/opt/rh/python27/root/usr/bin
|
||||
|
||||
HOME=/tmp
|
||||
|
||||
# Every minute!
|
||||
|
|
Загрузка…
Ссылка в новой задаче