drupalizer.py 1.03 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
31


32
# Docker
33

34
35
36
37
env.docker_workspace = '/opt/sfl'
env.docker_site_root = '{}/src/drupal'.format(env.docker_workspace)
env.bind_port = 8001
env.apache_user = 'www-data'
38
39


40
# Hook commands
41

Emmanuel Milou's avatar
Emmanuel Milou committed
42
43
env.hook_post_install = ['drush fra -y', 'drush cc all']
env.hook_post_update= ['drush fra -y', 'drush cc all']