drupalizer.py 1.69 KB
Newer Older
1
from os import path
2

3
from fabric.api import env
4

Emmanuel Milou's avatar
Emmanuel Milou committed
5

6
# Project settings
7

8
9
10
11
env.project_name = 'sfl_boilerplate'
env.workspace = path.join(path.dirname(__file__), path.pardir)
env.interactive_mode = True
env.locale = False
12

Emmanuel Milou's avatar
Emmanuel Milou committed
13

14
# Site
15

16
17
env.site_root = '{}/src/drupal'.format(env.workspace)
env.site_name = 'SFL Boilerplate'
Emmanuel Milou's avatar
Emmanuel Milou committed
18
env.site_environment = 'local'
19
20
21
22
23
24
25
26
27
28
29
env.site_profile = 'sflinux'
env.site_profile_repo = 'git@gitlab.savoirfairelinux.com:drupal/sflinux.git'
env.site_profile_makefile = 'build/build-sflinux-7.x.make'
env.site_db_user = 'dev'
env.site_db_pass = 'dev'
env.site_db_host = 'localhost'
env.site_db_name = 'sfl_boilerplate'
env.site_hostname = 'local.boilerplate.sfl'
env.site_admin_user = 'admin'
env.site_admin_pass = 'admin'
env.site_subdir = 'default'
30

Emmanuel Milou's avatar
Emmanuel Milou committed
31
32
33
34
# Database dump
# To enable it, replace the boolean value with the absolute path of a gzipped SQL dump file.
env.db_dump = False

35

36
# Docker
37

38
39
40
41
env.docker_workspace = '/opt/sfl'
env.docker_site_root = '{}/src/drupal'.format(env.docker_workspace)
env.bind_port = 8001
env.apache_user = 'www-data'
Ernesto Rodriguez Ortiz's avatar
Ernesto Rodriguez Ortiz committed
42
# Docker auto-added container IP
Emmanuel Milou's avatar
Emmanuel Milou committed
43
44
env.container_ip = '172.17.0.2'

45

46
# Hook commands
47

Emmanuel Milou's avatar
Emmanuel Milou committed
48
env.hook_post_install = ['drush fra -y', 'drush cc all']
49
env.hook_post_update= ['drush fra -y', 'drush cc all']
Emmanuel Milou's avatar
Emmanuel Milou committed
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67


env.aliases = {
    'dev': {
        'aegir': True,
        'host': 'sfl-aegir-azure.savoirfairelinux.net',
        'user': 'aegir',
        'root': '/var/aegir/platforms/',
        'aegir_platform': '{name}-{env}-{build}',
        'aegir_path': '/var/aegir',
        'aegir_destsrv': 'server_sflringwebstagingringcx',
    },
    'dev2': {
        'host': 'sfl-aegir-azure.savoirfairelinux.net',
        'user': 'aegir',
        'root': '/var/aegir/drupalizer/drupal/',
    },
}