bonethug 0.0.66 → 0.0.67

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -168,6 +168,14 @@ according to the settings in your config/cnf.yml file*
168
168
 
169
169
 
170
170
 
171
+ **Unlock a Remote Server**
172
+
173
+ *This unlocks a failed deployment*
174
+
175
+ `thug force-unlock {develoment|staging|production}`
176
+
177
+
178
+
171
179
  **Trigger a Snapshot Backup from the Remote Server**
172
180
 
173
181
  *This wraps mina and runs the backup task in the local .bonethug/deploy.rb file.
data/config/cnf.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  deploy:
2
2
  common:
3
- project_type: rails3 | rails4 | silverstripe3 | drupal | php | sinatra
3
+ project_type: rails3 | rails4 | silverstripe3 | drupal6 | drupal7 | drupal8 | php | sinatra
4
4
  base_dir: /var/www
5
5
  repository: git@gitlab.....
6
6
  project_slug: tradespot
@@ -99,6 +99,7 @@ mail:
99
99
  port: 587
100
100
  apache:
101
101
  development:
102
+ version: 2.4
102
103
  server_name: development.domain.local
103
104
  server_aliases:
104
105
  - www.development.domain.local
@@ -106,6 +107,7 @@ apache:
106
107
  RAILS_ENV: development
107
108
  APPLICATION_ENV: development
108
109
  staging:
110
+ version: 2.2
109
111
  server_name: staging.domain.com
110
112
  server_aliases:
111
113
  - www.staging.domain.com
@@ -113,6 +115,7 @@ apache:
113
115
  RAILS_ENV: staging
114
116
  APPLICATION_ENV: staging
115
117
  production:
118
+ version: 2.4
116
119
  server_name: production.domain.com
117
120
  server_aliases:
118
121
  - www.production.domain.com
data/config/deploy.rb CHANGED
@@ -42,10 +42,10 @@ vendor = conf.get('vendor','Array') || []
42
42
  vhost = deploy.get('project_slug') + '_' + env
43
43
 
44
44
  # composer?
45
- use_composer = ['silverstripe','silverstripe3','drupal','php'].include? deploy.get('project_type')
45
+ use_composer = ['silverstripe','silverstripe3','drupal','drupal6','drupal7','drupal8','php'].include? deploy.get('project_type')
46
46
 
47
47
  # composer?
48
- use_bower = ['silverstripe','silverstripe3','drupal','php'].include? deploy.get('project_type')
48
+ use_bower = ['silverstripe','silverstripe3','drupal','drupal6','drupal7','drupal8','php'].include? deploy.get('project_type')
49
49
 
50
50
  # directories we need to track
51
51
  resources += ['backups']
@@ -271,6 +271,7 @@ task :deploy => :environment do
271
271
  AllowOverride All
272
272
  Order allow,deny
273
273
  Allow from all
274
+ #{vh_cnf.get('version').to_f > 2.4 ? 'Require all granted' : ''}
274
275
 
275
276
  </Directory>
276
277
 
@@ -278,8 +279,9 @@ task :deploy => :environment do
278
279
  "
279
280
 
280
281
  # install the vhost
281
- queue 'rm /etc/apache2/sites-available/'+vhost
282
- queue 'echo "'+vh+'" > /etc/apache2/sites-available/'+vhost
282
+ queue! %[touch /etc/apache2/sites-available/#{vhost}.conf]
283
+ queue! %[rm /etc/apache2/sites-available/#{vhost}.conf]
284
+ queue! %[echo "#{vh}" > /etc/apache2/sites-available/#{vhost}.conf]
283
285
 
284
286
  to :launch do
285
287
 
@@ -335,7 +337,7 @@ task :deploy => :environment do
335
337
  queue! %[touch #{deploy_to}/current/tmp/restart.txt]
336
338
 
337
339
  # handle apache and cron
338
- queue! %[a2ensite "#{vhost}"]
340
+ queue! %[a2ensite #{vhost}.conf]
339
341
  queue! %[/etc/init.d/apache2 reload]
340
342
  invoke :'whenever:update'
341
343
 
@@ -343,6 +345,9 @@ task :deploy => :environment do
343
345
  queue! %[export APPLICATION_ENV=#{env} && php #{deploy_to}/current/public/framework/cli-script.php dev/build] if ['silverstripe','silverstripe3'].include? deploy.get('project_type')
344
346
  queue! %[cd #{deploy_to}/current/lib && php flush_drupal_cache.php] if ['drupal','drupal6','drupal7','drupal8'].include? deploy.get('project_type')
345
347
 
348
+ # run any project scripts
349
+ # purge combined files for ss
350
+
346
351
  # cleanup!
347
352
  invoke :'deploy:cleanup'
348
353
 
@@ -21,7 +21,7 @@ module Bonethug
21
21
  include FileUtils
22
22
  include Digest
23
23
 
24
- @@bonthug_gem_dir = File.expand_path(File.dirname(__FILE__)) + '/../..'
24
+ @@bonthug_gem_dir = File.expand_path(File.dirname(__FILE__) + '/../..')
25
25
  @@skel_dir = @@bonthug_gem_dir + '/skel'
26
26
  @@conf = Conf.new.add(@@skel_dir + '/skel.yml')
27
27
  @@project_config_files = {editable: ['cnf.yml','schedule.rb'], generated: ['backup.rb','deploy.rb']}
@@ -248,6 +248,9 @@ module Bonethug
248
248
  def self.bonethugise(dir='.', mode=:init)
249
249
 
250
250
  target = File.expand_path(dir)
251
+
252
+ # run bundle update first
253
+ system('bundle update bonethug') if mode == :update
251
254
 
252
255
  # check for the existence of required dirs and create if required
253
256
  [target + '/.bonethug', target + '/config', target + '/config/example'].each do |path|
@@ -288,16 +291,18 @@ module Bonethug
288
291
  project_type = project_conf.get('deploy.common.project_type')
289
292
  if project_type
290
293
  bonethug_files = @@conf.get 'project_types.' + project_type + '.bonethug_files'
291
- bonethug_files.each do |index, file|
294
+ if bonethug_files
295
+ bonethug_files.each do |index, file|
292
296
 
293
- # push some output
294
- puts 'Handling ' + index.to_s + ':' + file.to_s
297
+ # push some output
298
+ puts 'Handling ' + index.to_s + ':' + file.to_s
295
299
 
296
- # do the copy
297
- src_file = @@bonthug_gem_dir + '/skel/project_types/' + project_type + '/' + file
298
- dst_file = target + '/' + file
299
- FileUtils.cp src_file, dst_file
300
-
300
+ # do the copy
301
+ src_file = @@bonthug_gem_dir + '/skel/project_types/' + project_type + '/' + file
302
+ dst_file = target + '/' + file
303
+ FileUtils.cp src_file, dst_file
304
+
305
+ end
301
306
  end
302
307
  else
303
308
  puts "Couldn't find project type in " + target_cnf
@@ -316,6 +321,7 @@ module Bonethug
316
321
  'mina' => 'nadarei/mina',
317
322
  'astrails-safe' => 'astrails/safe',
318
323
  'whenever' => 'javan/whenever',
324
+ 'guard-erb' => 'azt3k/guard-erb',
319
325
  'bonethug' => nil
320
326
  }
321
327
 
@@ -354,7 +360,7 @@ module Bonethug
354
360
  end
355
361
 
356
362
  # run bundler
357
- exec 'bundle install --path vendor' + (mode == :update ? ' && bundle update bonethug' : '')
363
+ exec 'bundle install --path vendor'
358
364
 
359
365
  # self
360
366
 
@@ -1,6 +1,6 @@
1
-
2
- module Bonethug
3
- VERSION = "0.0.66"
4
- BUILD_DATE = "2013-11-13 11:16:07 +1300"
5
- end
6
-
1
+
2
+ module Bonethug
3
+ VERSION = "0.0.67"
4
+ BUILD_DATE = "2013-12-15 16:02:04 +1300"
5
+ end
6
+
@@ -19,7 +19,7 @@ sudo apt-get update && sudo apt-get upgrade
19
19
 
20
20
  # dev headers
21
21
  sudo apt-get install libcurl4-openssl-dev libssl-dev apache2-threaded-dev libapr1-dev libaprutil1-dev libapr1-dev libaprutil1-dev
22
- sudo apt-get install libmysqlclient-dev libmagickwand-dev libsqlite3-dev
22
+ sudo apt-get install libmysqlclient-dev libmagickwand-dev libsqlite3-dev libxml2-dev libxslt1-dev
23
23
 
24
24
  # regular packages
25
25
  sudo apt-get install apache2-mpm-worker
@@ -28,6 +28,7 @@ sudo apt-get install mysql-server mysql-client sqlite3
28
28
  sudo apt-get install imagemagick
29
29
  sudo apt-get install phpmyadmin
30
30
  sudo apt-get install sshpass
31
+ sudo apt-get install libxml2 g++
31
32
  sudo apt-get install git ruby1.9.3 wkhtmltopdf nodejs npm
32
33
 
33
34
 
@@ -60,6 +61,10 @@ sudo apt-get install git ruby1.9.3 wkhtmltopdf nodejs npm
60
61
  sed -i -e "s/listen = \/var\/run\/php5-fpm.sock/listen = 127.0.0.1:9000/g" /etc/php5/fpm/pool.d/www.conf
61
62
  sudo echo -e "<IfModule mod_fastcgi.c>\n AddHandler php5-fcgi .php\n Action php5-fcgi /php5-fcgi\n Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi\n FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -host 127.0.0.1:9000 -idle-timeout 250 -pass-header Authorization\n </IfModule>" > /etc/apache2/conf.d/php-fpm.conf
62
63
 
64
+ #apache2.4
65
+ sudo echo -e "<IfModule mod_fastcgi.c>\n AddHandler php5-fcgi .php\n Action php5-fcgi /php5-fcgi\n Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi\n FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -host 127.0.0.1:9000 -idle-timeout 250 -pass-header Authorization\n <Directory />\nRequire all granted\n </Directory>\n </IfModule>" > /etc/apache2/conf-available/php-fpm.conf
66
+ a2enconf php-fpm.conf
67
+
63
68
  # Apache
64
69
  # ------
65
70
 
@@ -69,6 +74,10 @@ sudo a2enmod actions fastcgi alias rewrite headers
69
74
  # phpmyadmin
70
75
  sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf
71
76
 
77
+ # phpmyadmin apache 2.4
78
+ cp /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
79
+ a2enconf phpmyadmin.conf
80
+
72
81
  # -----------------------------------------------------
73
82
  # Install Gems
74
83
  # -----------------------------------------------------
@@ -93,4 +102,4 @@ npm install bower -g
93
102
  # -----------------------------------------------------
94
103
 
95
104
  sudo service apache2 restart
96
- sudo /etc/init.d/php5-fpm restart
105
+ sudo service php5-fpm restart
@@ -0,0 +1,39 @@
1
+ # project framework
2
+ /.bundle
3
+ /vendor
4
+ /bin
5
+ /log/*
6
+ /backups/*
7
+ /db_dumps
8
+ /tmp/*
9
+ /composer.phar
10
+ .sass-cache
11
+
12
+ # drupal, good times...
13
+ # block all files in the public dir then unblock the dirs
14
+ /public/*
15
+ !/public/*/
16
+
17
+ # block the core dirs
18
+ /public/includes
19
+ /public/misc
20
+ /public/modules
21
+ /public/profiles
22
+ /public/scripts
23
+ /public/themes
24
+
25
+ # block some autogenerated files in the sites dir
26
+ /public/sites/example.sites.php
27
+ /public/sites/README.txt
28
+ /public/sites/*/README.txt
29
+
30
+ # block any modules tracked by composer
31
+ /public/sites/all/modules/*
32
+
33
+ # project files
34
+ *.sublime-workspace
35
+ *.sublime-project
36
+
37
+ # files to keep
38
+ !.gitkeep
39
+ !.keep
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "bonethug/drupal7-skel",
3
+ "repositories": [
4
+ {
5
+ "type": "vcs",
6
+ "url": "git@github.com:azt3k/drupal.git"
7
+ }
8
+ ],
9
+ "require": {
10
+ "symfony/yaml" : "2.3.*@dev",
11
+ "drush/drush" : "dev-master",
12
+ "thecodingmachine/drupal" : "7.*@dev"
13
+ },
14
+ "extra": {
15
+ "installer-paths": {
16
+ "vendor": [],
17
+ "public": [],
18
+ "public/vendor/{$name}": []
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,11 @@
1
+ <?php
2
+
3
+ $pub_dir = realpath(__DIR__ . '/../public');
4
+ chdir($pub_dir);
5
+ define('DRUPAL_ROOT', $pub_dir);
6
+
7
+ if (file_exists($pub_dir . '/includes/bootstrap.inc')) {
8
+ require_once $pub_dir . '/includes/bootstrap.inc';
9
+ drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
10
+ drupal_flush_all_caches();
11
+ }
@@ -0,0 +1,259 @@
1
+ <?php
2
+ // $Id: default.settings.php,v 1.8.2.5 2010/12/15 13:21:14 goba Exp $
3
+
4
+ /**
5
+ * @file
6
+ * Drupal site-specific configuration file.
7
+ *
8
+ * IMPORTANT NOTE:
9
+ * This file may have been set to read-only by the Drupal installation
10
+ * program. If you make changes to this file, be sure to protect it again
11
+ * after making your modifications. Failure to remove write permissions
12
+ * to this file is a security risk.
13
+ *
14
+ * The configuration file to be loaded is based upon the rules below.
15
+ *
16
+ * The configuration directory will be discovered by stripping the
17
+ * website's hostname from left to right and pathname from right to
18
+ * left. The first configuration file found will be used and any
19
+ * others will be ignored. If no other configuration file is found
20
+ * then the default configuration file at 'sites/default' will be used.
21
+ *
22
+ * For example, for a fictitious site installed at
23
+ * http://www.drupal.org/mysite/test/, the 'settings.php'
24
+ * is searched in the following directories:
25
+ *
26
+ * 1. sites/www.drupal.org.mysite.test
27
+ * 2. sites/drupal.org.mysite.test
28
+ * 3. sites/org.mysite.test
29
+ *
30
+ * 4. sites/www.drupal.org.mysite
31
+ * 5. sites/drupal.org.mysite
32
+ * 6. sites/org.mysite
33
+ *
34
+ * 7. sites/www.drupal.org
35
+ * 8. sites/drupal.org
36
+ * 9. sites/org
37
+ *
38
+ * 10. sites/default
39
+ *
40
+ * If you are installing on a non-standard port number, prefix the
41
+ * hostname with that number. For example,
42
+ * http://www.drupal.org:8080/mysite/test/ could be loaded from
43
+ * sites/8080.www.drupal.org.mysite.test/.
44
+ */
45
+
46
+ /**
47
+ * Database settings:
48
+ *
49
+ * Note that the $db_url variable gets parsed using PHP's built-in
50
+ * URL parser (i.e. using the "parse_url()" function) so make sure
51
+ * not to confuse the parser. If your username, password
52
+ * or database name contain characters used to delineate
53
+ * $db_url parts, you can escape them via URI hex encodings:
54
+ *
55
+ * : = %3a / = %2f @ = %40
56
+ * + = %2b ( = %28 ) = %29
57
+ * ? = %3f = = %3d & = %26
58
+ *
59
+ * To specify multiple connections to be used in your site (i.e. for
60
+ * complex custom modules) you can also specify an associative array
61
+ * of $db_url variables with the 'default' element used until otherwise
62
+ * requested.
63
+ *
64
+ * You can optionally set prefixes for some or all database table names
65
+ * by using the $db_prefix setting. If a prefix is specified, the table
66
+ * name will be prepended with its value. Be sure to use valid database
67
+ * characters only, usually alphanumeric and underscore. If no prefixes
68
+ * are desired, leave it as an empty string ''.
69
+ *
70
+ * To have all database names prefixed, set $db_prefix as a string:
71
+ *
72
+ * $db_prefix = 'main_';
73
+ *
74
+ * To provide prefixes for specific tables, set $db_prefix as an array.
75
+ * The array's keys are the table names and the values are the prefixes.
76
+ * The 'default' element holds the prefix for any tables not specified
77
+ * elsewhere in the array. Example:
78
+ *
79
+ * $db_prefix = array(
80
+ * 'default' => 'main_',
81
+ * 'users' => 'shared_',
82
+ * 'sessions' => 'shared_',
83
+ * 'role' => 'shared_',
84
+ * 'authmap' => 'shared_',
85
+ * );
86
+ *
87
+ * Database URL format:
88
+ * $db_url = 'mysql://username:password@localhost/databasename';
89
+ * $db_url = 'mysqli://username:password@localhost/databasename';
90
+ * $db_url = 'pgsql://username:password@localhost/databasename';
91
+ */
92
+ $db_url = 'mysqli://'.$db->user.':'.$db->pass.'@'.$db->host.'/'.$db->name;
93
+ $db_prefix = '';
94
+
95
+ /**
96
+ * Database default collation.
97
+ *
98
+ * All data stored in Drupal is in UTF-8. Certain databases, such as MySQL,
99
+ * support different algorithms for comparing, indexing, and sorting characters;
100
+ * a so called "collation". The default collation of a database normally works
101
+ * for many use-cases, but depending on the language(s) of the stored data, it
102
+ * may be necessary to use a different collation.
103
+ * Important:
104
+ * - Only set or change this value BEFORE installing Drupal, unless you know
105
+ * what you are doing.
106
+ * - All database tables and columns should be in the same collation. Otherwise,
107
+ * string comparisons performed for table JOINs will be significantly slower.
108
+ * - Especially when storing data in German or Russian on MySQL 5.1+, you want
109
+ * to use the 'utf8_unicode_ci' collation instead.
110
+ *
111
+ * @see http://drupal.org/node/772678
112
+ */
113
+ # $db_collation = 'utf8_general_ci';
114
+
115
+ /**
116
+ * Access control for update.php script
117
+ *
118
+ * If you are updating your Drupal installation using the update.php script
119
+ * being not logged in as administrator, you will need to modify the access
120
+ * check statement below. Change the FALSE to a TRUE to disable the access
121
+ * check. After finishing the upgrade, be sure to open this file again
122
+ * and change the TRUE back to a FALSE!
123
+ */
124
+ $update_free_access = FALSE;
125
+
126
+ /**
127
+ * Base URL (optional).
128
+ *
129
+ * If you are experiencing issues with different site domains,
130
+ * uncomment the Base URL statement below (remove the leading hash sign)
131
+ * and fill in the absolute URL to your Drupal installation.
132
+ *
133
+ * You might also want to force users to use a given domain.
134
+ * See the .htaccess file for more information.
135
+ *
136
+ * Examples:
137
+ * $base_url = 'http://www.example.com';
138
+ * $base_url = 'http://www.example.com:8888';
139
+ * $base_url = 'http://www.example.com/drupal';
140
+ * $base_url = 'https://www.example.com:8888/drupal';
141
+ *
142
+ * It is not allowed to have a trailing slash; Drupal will add it
143
+ * for you.
144
+ */
145
+ # $base_url = 'http://www.example.com'; // NO trailing slash!
146
+
147
+ /**
148
+ * PHP settings:
149
+ *
150
+ * To see what PHP settings are possible, including whether they can
151
+ * be set at runtime (ie., when ini_set() occurs), read the PHP
152
+ * documentation at http://www.php.net/manual/en/ini.php#ini.list
153
+ * and take a look at the .htaccess file to see which non-runtime
154
+ * settings are used there. Settings defined here should not be
155
+ * duplicated there so as to avoid conflict issues.
156
+ */
157
+ ini_set('arg_separator.output', '&amp;');
158
+ ini_set('magic_quotes_runtime', 0);
159
+ ini_set('magic_quotes_sybase', 0);
160
+ ini_set('session.cache_expire', 200000);
161
+ ini_set('session.cache_limiter', 'none');
162
+ ini_set('session.cookie_lifetime', 2000000);
163
+ ini_set('session.gc_maxlifetime', 200000);
164
+ ini_set('session.save_handler', 'user');
165
+ ini_set('session.use_cookies', 1);
166
+ ini_set('session.use_only_cookies', 1);
167
+ ini_set('session.use_trans_sid', 0);
168
+ ini_set('url_rewriter.tags', '');
169
+
170
+ /**
171
+ * If you encounter a situation where users post a large amount of text, and
172
+ * the result is stripped out upon viewing but can still be edited, Drupal's
173
+ * output filter may not have sufficient memory to process it. If you
174
+ * experience this issue, you may wish to uncomment the following two lines
175
+ * and increase the limits of these variables. For more information, see
176
+ * http://php.net/manual/en/pcre.configuration.php.
177
+ */
178
+ # ini_set('pcre.backtrack_limit', 200000);
179
+ # ini_set('pcre.recursion_limit', 200000);
180
+
181
+ /**
182
+ * Drupal automatically generates a unique session cookie name for each site
183
+ * based on on its full domain name. If you have multiple domains pointing at
184
+ * the same Drupal site, you can either redirect them all to a single domain
185
+ * (see comment in .htaccess), or uncomment the line below and specify their
186
+ * shared base domain. Doing so assures that users remain logged in as they
187
+ * cross between your various domains.
188
+ */
189
+ # $cookie_domain = 'example.com';
190
+
191
+ /**
192
+ * Variable overrides:
193
+ *
194
+ * To override specific entries in the 'variable' table for this site,
195
+ * set them here. You usually don't need to use this feature. This is
196
+ * useful in a configuration file for a vhost or directory, rather than
197
+ * the default settings.php. Any configuration setting from the 'variable'
198
+ * table can be given a new value. Note that any values you provide in
199
+ * these variable overrides will not be modifiable from the Drupal
200
+ * administration interface.
201
+ *
202
+ * Remove the leading hash signs to enable.
203
+ */
204
+ # $conf = array(
205
+ # 'site_name' => 'My Drupal site',
206
+ # 'theme_default' => 'minnelli',
207
+ # 'anonymous' => 'Visitor',
208
+ /**
209
+ * A custom theme can be set for the off-line page. This applies when the site
210
+ * is explicitly set to off-line mode through the administration page or when
211
+ * the database is inactive due to an error. It can be set through the
212
+ * 'maintenance_theme' key. The template file should also be copied into the
213
+ * theme. It is located inside 'modules/system/maintenance-page.tpl.php'.
214
+ * Note: This setting does not apply to installation and update pages.
215
+ */
216
+ # 'maintenance_theme' => 'minnelli',
217
+ /**
218
+ * reverse_proxy accepts a boolean value.
219
+ *
220
+ * Enable this setting to determine the correct IP address of the remote
221
+ * client by examining information stored in the X-Forwarded-For headers.
222
+ * X-Forwarded-For headers are a standard mechanism for identifying client
223
+ * systems connecting through a reverse proxy server, such as Squid or
224
+ * Pound. Reverse proxy servers are often used to enhance the performance
225
+ * of heavily visited sites and may also provide other site caching,
226
+ * security or encryption benefits. If this Drupal installation operates
227
+ * behind a reverse proxy, this setting should be enabled so that correct
228
+ * IP address information is captured in Drupal's session management,
229
+ * logging, statistics and access management systems; if you are unsure
230
+ * about this setting, do not have a reverse proxy, or Drupal operates in
231
+ * a shared hosting environment, this setting should be set to disabled.
232
+ */
233
+ # 'reverse_proxy' => TRUE,
234
+ /**
235
+ * reverse_proxy accepts an array of IP addresses.
236
+ *
237
+ * Each element of this array is the IP address of any of your reverse
238
+ * proxies. Filling this array Drupal will trust the information stored
239
+ * in the X-Forwarded-For headers only if Remote IP address is one of
240
+ * these, that is the request reaches the web server from one of your
241
+ * reverse proxies. Otherwise, the client could directly connect to
242
+ * your web server spoofing the X-Forwarded-For headers.
243
+ */
244
+ # 'reverse_proxy_addresses' => array('a.b.c.d', ...),
245
+ # );
246
+
247
+ /**
248
+ * String overrides:
249
+ *
250
+ * To override specific strings on your site with or without enabling locale
251
+ * module, add an entry to this list. This functionality allows you to change
252
+ * a small number of your site's default English language interface strings.
253
+ *
254
+ * Remove the leading hash signs to enable.
255
+ */
256
+ # $conf['locale_custom_strings_en'] = array(
257
+ # 'forum' => 'Discussion board',
258
+ # '@count min' => '@count minutes',
259
+ # );
@@ -0,0 +1,259 @@
1
+ <?php
2
+ // $Id: default.settings.php,v 1.8.2.5 2010/12/15 13:21:14 goba Exp $
3
+
4
+ /**
5
+ * @file
6
+ * Drupal site-specific configuration file.
7
+ *
8
+ * IMPORTANT NOTE:
9
+ * This file may have been set to read-only by the Drupal installation
10
+ * program. If you make changes to this file, be sure to protect it again
11
+ * after making your modifications. Failure to remove write permissions
12
+ * to this file is a security risk.
13
+ *
14
+ * The configuration file to be loaded is based upon the rules below.
15
+ *
16
+ * The configuration directory will be discovered by stripping the
17
+ * website's hostname from left to right and pathname from right to
18
+ * left. The first configuration file found will be used and any
19
+ * others will be ignored. If no other configuration file is found
20
+ * then the default configuration file at 'sites/default' will be used.
21
+ *
22
+ * For example, for a fictitious site installed at
23
+ * http://www.drupal.org/mysite/test/, the 'settings.php'
24
+ * is searched in the following directories:
25
+ *
26
+ * 1. sites/www.drupal.org.mysite.test
27
+ * 2. sites/drupal.org.mysite.test
28
+ * 3. sites/org.mysite.test
29
+ *
30
+ * 4. sites/www.drupal.org.mysite
31
+ * 5. sites/drupal.org.mysite
32
+ * 6. sites/org.mysite
33
+ *
34
+ * 7. sites/www.drupal.org
35
+ * 8. sites/drupal.org
36
+ * 9. sites/org
37
+ *
38
+ * 10. sites/default
39
+ *
40
+ * If you are installing on a non-standard port number, prefix the
41
+ * hostname with that number. For example,
42
+ * http://www.drupal.org:8080/mysite/test/ could be loaded from
43
+ * sites/8080.www.drupal.org.mysite.test/.
44
+ */
45
+
46
+ /**
47
+ * Database settings:
48
+ *
49
+ * Note that the $db_url variable gets parsed using PHP's built-in
50
+ * URL parser (i.e. using the "parse_url()" function) so make sure
51
+ * not to confuse the parser. If your username, password
52
+ * or database name contain characters used to delineate
53
+ * $db_url parts, you can escape them via URI hex encodings:
54
+ *
55
+ * : = %3a / = %2f @ = %40
56
+ * + = %2b ( = %28 ) = %29
57
+ * ? = %3f = = %3d & = %26
58
+ *
59
+ * To specify multiple connections to be used in your site (i.e. for
60
+ * complex custom modules) you can also specify an associative array
61
+ * of $db_url variables with the 'default' element used until otherwise
62
+ * requested.
63
+ *
64
+ * You can optionally set prefixes for some or all database table names
65
+ * by using the $db_prefix setting. If a prefix is specified, the table
66
+ * name will be prepended with its value. Be sure to use valid database
67
+ * characters only, usually alphanumeric and underscore. If no prefixes
68
+ * are desired, leave it as an empty string ''.
69
+ *
70
+ * To have all database names prefixed, set $db_prefix as a string:
71
+ *
72
+ * $db_prefix = 'main_';
73
+ *
74
+ * To provide prefixes for specific tables, set $db_prefix as an array.
75
+ * The array's keys are the table names and the values are the prefixes.
76
+ * The 'default' element holds the prefix for any tables not specified
77
+ * elsewhere in the array. Example:
78
+ *
79
+ * $db_prefix = array(
80
+ * 'default' => 'main_',
81
+ * 'users' => 'shared_',
82
+ * 'sessions' => 'shared_',
83
+ * 'role' => 'shared_',
84
+ * 'authmap' => 'shared_',
85
+ * );
86
+ *
87
+ * Database URL format:
88
+ * $db_url = 'mysql://username:password@localhost/databasename';
89
+ * $db_url = 'mysqli://username:password@localhost/databasename';
90
+ * $db_url = 'pgsql://username:password@localhost/databasename';
91
+ */
92
+ $db_url = 'mysqli://'.$db->user.':'.$db->pass.'@'.$db->host.'/'.$db->name;
93
+ $db_prefix = '';
94
+
95
+ /**
96
+ * Database default collation.
97
+ *
98
+ * All data stored in Drupal is in UTF-8. Certain databases, such as MySQL,
99
+ * support different algorithms for comparing, indexing, and sorting characters;
100
+ * a so called "collation". The default collation of a database normally works
101
+ * for many use-cases, but depending on the language(s) of the stored data, it
102
+ * may be necessary to use a different collation.
103
+ * Important:
104
+ * - Only set or change this value BEFORE installing Drupal, unless you know
105
+ * what you are doing.
106
+ * - All database tables and columns should be in the same collation. Otherwise,
107
+ * string comparisons performed for table JOINs will be significantly slower.
108
+ * - Especially when storing data in German or Russian on MySQL 5.1+, you want
109
+ * to use the 'utf8_unicode_ci' collation instead.
110
+ *
111
+ * @see http://drupal.org/node/772678
112
+ */
113
+ # $db_collation = 'utf8_general_ci';
114
+
115
+ /**
116
+ * Access control for update.php script
117
+ *
118
+ * If you are updating your Drupal installation using the update.php script
119
+ * being not logged in as administrator, you will need to modify the access
120
+ * check statement below. Change the FALSE to a TRUE to disable the access
121
+ * check. After finishing the upgrade, be sure to open this file again
122
+ * and change the TRUE back to a FALSE!
123
+ */
124
+ $update_free_access = FALSE;
125
+
126
+ /**
127
+ * Base URL (optional).
128
+ *
129
+ * If you are experiencing issues with different site domains,
130
+ * uncomment the Base URL statement below (remove the leading hash sign)
131
+ * and fill in the absolute URL to your Drupal installation.
132
+ *
133
+ * You might also want to force users to use a given domain.
134
+ * See the .htaccess file for more information.
135
+ *
136
+ * Examples:
137
+ * $base_url = 'http://www.example.com';
138
+ * $base_url = 'http://www.example.com:8888';
139
+ * $base_url = 'http://www.example.com/drupal';
140
+ * $base_url = 'https://www.example.com:8888/drupal';
141
+ *
142
+ * It is not allowed to have a trailing slash; Drupal will add it
143
+ * for you.
144
+ */
145
+ # $base_url = 'http://www.example.com'; // NO trailing slash!
146
+
147
+ /**
148
+ * PHP settings:
149
+ *
150
+ * To see what PHP settings are possible, including whether they can
151
+ * be set at runtime (ie., when ini_set() occurs), read the PHP
152
+ * documentation at http://www.php.net/manual/en/ini.php#ini.list
153
+ * and take a look at the .htaccess file to see which non-runtime
154
+ * settings are used there. Settings defined here should not be
155
+ * duplicated there so as to avoid conflict issues.
156
+ */
157
+ ini_set('arg_separator.output', '&amp;');
158
+ ini_set('magic_quotes_runtime', 0);
159
+ ini_set('magic_quotes_sybase', 0);
160
+ ini_set('session.cache_expire', 200000);
161
+ ini_set('session.cache_limiter', 'none');
162
+ ini_set('session.cookie_lifetime', 2000000);
163
+ ini_set('session.gc_maxlifetime', 200000);
164
+ ini_set('session.save_handler', 'user');
165
+ ini_set('session.use_cookies', 1);
166
+ ini_set('session.use_only_cookies', 1);
167
+ ini_set('session.use_trans_sid', 0);
168
+ ini_set('url_rewriter.tags', '');
169
+
170
+ /**
171
+ * If you encounter a situation where users post a large amount of text, and
172
+ * the result is stripped out upon viewing but can still be edited, Drupal's
173
+ * output filter may not have sufficient memory to process it. If you
174
+ * experience this issue, you may wish to uncomment the following two lines
175
+ * and increase the limits of these variables. For more information, see
176
+ * http://php.net/manual/en/pcre.configuration.php.
177
+ */
178
+ # ini_set('pcre.backtrack_limit', 200000);
179
+ # ini_set('pcre.recursion_limit', 200000);
180
+
181
+ /**
182
+ * Drupal automatically generates a unique session cookie name for each site
183
+ * based on on its full domain name. If you have multiple domains pointing at
184
+ * the same Drupal site, you can either redirect them all to a single domain
185
+ * (see comment in .htaccess), or uncomment the line below and specify their
186
+ * shared base domain. Doing so assures that users remain logged in as they
187
+ * cross between your various domains.
188
+ */
189
+ # $cookie_domain = 'example.com';
190
+
191
+ /**
192
+ * Variable overrides:
193
+ *
194
+ * To override specific entries in the 'variable' table for this site,
195
+ * set them here. You usually don't need to use this feature. This is
196
+ * useful in a configuration file for a vhost or directory, rather than
197
+ * the default settings.php. Any configuration setting from the 'variable'
198
+ * table can be given a new value. Note that any values you provide in
199
+ * these variable overrides will not be modifiable from the Drupal
200
+ * administration interface.
201
+ *
202
+ * Remove the leading hash signs to enable.
203
+ */
204
+ # $conf = array(
205
+ # 'site_name' => 'My Drupal site',
206
+ # 'theme_default' => 'minnelli',
207
+ # 'anonymous' => 'Visitor',
208
+ /**
209
+ * A custom theme can be set for the off-line page. This applies when the site
210
+ * is explicitly set to off-line mode through the administration page or when
211
+ * the database is inactive due to an error. It can be set through the
212
+ * 'maintenance_theme' key. The template file should also be copied into the
213
+ * theme. It is located inside 'modules/system/maintenance-page.tpl.php'.
214
+ * Note: This setting does not apply to installation and update pages.
215
+ */
216
+ # 'maintenance_theme' => 'minnelli',
217
+ /**
218
+ * reverse_proxy accepts a boolean value.
219
+ *
220
+ * Enable this setting to determine the correct IP address of the remote
221
+ * client by examining information stored in the X-Forwarded-For headers.
222
+ * X-Forwarded-For headers are a standard mechanism for identifying client
223
+ * systems connecting through a reverse proxy server, such as Squid or
224
+ * Pound. Reverse proxy servers are often used to enhance the performance
225
+ * of heavily visited sites and may also provide other site caching,
226
+ * security or encryption benefits. If this Drupal installation operates
227
+ * behind a reverse proxy, this setting should be enabled so that correct
228
+ * IP address information is captured in Drupal's session management,
229
+ * logging, statistics and access management systems; if you are unsure
230
+ * about this setting, do not have a reverse proxy, or Drupal operates in
231
+ * a shared hosting environment, this setting should be set to disabled.
232
+ */
233
+ # 'reverse_proxy' => TRUE,
234
+ /**
235
+ * reverse_proxy accepts an array of IP addresses.
236
+ *
237
+ * Each element of this array is the IP address of any of your reverse
238
+ * proxies. Filling this array Drupal will trust the information stored
239
+ * in the X-Forwarded-For headers only if Remote IP address is one of
240
+ * these, that is the request reaches the web server from one of your
241
+ * reverse proxies. Otherwise, the client could directly connect to
242
+ * your web server spoofing the X-Forwarded-For headers.
243
+ */
244
+ # 'reverse_proxy_addresses' => array('a.b.c.d', ...),
245
+ # );
246
+
247
+ /**
248
+ * String overrides:
249
+ *
250
+ * To override specific strings on your site with or without enabling locale
251
+ * module, add an entry to this list. This functionality allows you to change
252
+ * a small number of your site's default English language interface strings.
253
+ *
254
+ * Remove the leading hash signs to enable.
255
+ */
256
+ # $conf['locale_custom_strings_en'] = array(
257
+ # 'forum' => 'Discussion board',
258
+ # '@count min' => '@count minutes',
259
+ # );
@@ -0,0 +1,17 @@
1
+ <?php
2
+
3
+ // autoloader
4
+ require_once __DIR__ . '/../../../vendor/autoload.php';
5
+
6
+ // Namespace for yaml
7
+ use Symfony\Component\Yaml\Yaml;
8
+
9
+ // Transfer environmental vars to constants
10
+ if (!defined('APPLICATION_ENV')) define('APPLICATION_ENV', getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : "production");
11
+
12
+ // prep some data
13
+ $db_cnf = Yaml::parse(file_get_contents(__DIR__.'/../../../config/cnf.yml'));
14
+ $db = (object) $db_cnf['dbs']['default'][APPLICATION_ENV];
15
+
16
+ // what conf are we using
17
+ require APPLICATION_ENV . '.settings.php';
@@ -0,0 +1,260 @@
1
+ <?php
2
+ // $Id: default.settings.php,v 1.8.2.5 2010/12/15 13:21:14 goba Exp $
3
+
4
+ /**
5
+ * @file
6
+ * Drupal site-specific configuration file.
7
+ *
8
+ * IMPORTANT NOTE:
9
+ * This file may have been set to read-only by the Drupal installation
10
+ * program. If you make changes to this file, be sure to protect it again
11
+ * after making your modifications. Failure to remove write permissions
12
+ * to this file is a security risk.
13
+ *
14
+ * The configuration file to be loaded is based upon the rules below.
15
+ *
16
+ * The configuration directory will be discovered by stripping the
17
+ * website's hostname from left to right and pathname from right to
18
+ * left. The first configuration file found will be used and any
19
+ * others will be ignored. If no other configuration file is found
20
+ * then the default configuration file at 'sites/default' will be used.
21
+ *
22
+ * For example, for a fictitious site installed at
23
+ * http://www.drupal.org/mysite/test/, the 'settings.php'
24
+ * is searched in the following directories:
25
+ *
26
+ * 1. sites/www.drupal.org.mysite.test
27
+ * 2. sites/drupal.org.mysite.test
28
+ * 3. sites/org.mysite.test
29
+ *
30
+ * 4. sites/www.drupal.org.mysite
31
+ * 5. sites/drupal.org.mysite
32
+ * 6. sites/org.mysite
33
+ *
34
+ * 7. sites/www.drupal.org
35
+ * 8. sites/drupal.org
36
+ * 9. sites/org
37
+ *
38
+ * 10. sites/default
39
+ *
40
+ * If you are installing on a non-standard port number, prefix the
41
+ * hostname with that number. For example,
42
+ * http://www.drupal.org:8080/mysite/test/ could be loaded from
43
+ * sites/8080.www.drupal.org.mysite.test/.
44
+ */
45
+
46
+ /**
47
+ * Database settings:
48
+ *
49
+ * Note that the $db_url variable gets parsed using PHP's built-in
50
+ * URL parser (i.e. using the "parse_url()" function) so make sure
51
+ * not to confuse the parser. If your username, password
52
+ * or database name contain characters used to delineate
53
+ * $db_url parts, you can escape them via URI hex encodings:
54
+ *
55
+ * : = %3a / = %2f @ = %40
56
+ * + = %2b ( = %28 ) = %29
57
+ * ? = %3f = = %3d & = %26
58
+ *
59
+ * To specify multiple connections to be used in your site (i.e. for
60
+ * complex custom modules) you can also specify an associative array
61
+ * of $db_url variables with the 'default' element used until otherwise
62
+ * requested.
63
+ *
64
+ * You can optionally set prefixes for some or all database table names
65
+ * by using the $db_prefix setting. If a prefix is specified, the table
66
+ * name will be prepended with its value. Be sure to use valid database
67
+ * characters only, usually alphanumeric and underscore. If no prefixes
68
+ * are desired, leave it as an empty string ''.
69
+ *
70
+ * To have all database names prefixed, set $db_prefix as a string:
71
+ *
72
+ * $db_prefix = 'main_';
73
+ *
74
+ * To provide prefixes for specific tables, set $db_prefix as an array.
75
+ * The array's keys are the table names and the values are the prefixes.
76
+ * The 'default' element holds the prefix for any tables not specified
77
+ * elsewhere in the array. Example:
78
+ *
79
+ * $db_prefix = array(
80
+ * 'default' => 'main_',
81
+ * 'users' => 'shared_',
82
+ * 'sessions' => 'shared_',
83
+ * 'role' => 'shared_',
84
+ * 'authmap' => 'shared_',
85
+ * );
86
+ *
87
+ * Database URL format:
88
+ * $db_url = 'mysql://username:password@localhost/databasename';
89
+ * $db_url = 'mysqli://username:password@localhost/databasename';
90
+ * $db_url = 'pgsql://username:password@localhost/databasename';
91
+ */
92
+ // load db settings
93
+ $db_url = 'mysqli://'.$db->user.':'.$db->pass.'@'.$db->host.'/'.$db->name;
94
+ $db_prefix = '';
95
+
96
+ /**
97
+ * Database default collation.
98
+ *
99
+ * All data stored in Drupal is in UTF-8. Certain databases, such as MySQL,
100
+ * support different algorithms for comparing, indexing, and sorting characters;
101
+ * a so called "collation". The default collation of a database normally works
102
+ * for many use-cases, but depending on the language(s) of the stored data, it
103
+ * may be necessary to use a different collation.
104
+ * Important:
105
+ * - Only set or change this value BEFORE installing Drupal, unless you know
106
+ * what you are doing.
107
+ * - All database tables and columns should be in the same collation. Otherwise,
108
+ * string comparisons performed for table JOINs will be significantly slower.
109
+ * - Especially when storing data in German or Russian on MySQL 5.1+, you want
110
+ * to use the 'utf8_unicode_ci' collation instead.
111
+ *
112
+ * @see http://drupal.org/node/772678
113
+ */
114
+ # $db_collation = 'utf8_general_ci';
115
+
116
+ /**
117
+ * Access control for update.php script
118
+ *
119
+ * If you are updating your Drupal installation using the update.php script
120
+ * being not logged in as administrator, you will need to modify the access
121
+ * check statement below. Change the FALSE to a TRUE to disable the access
122
+ * check. After finishing the upgrade, be sure to open this file again
123
+ * and change the TRUE back to a FALSE!
124
+ */
125
+ $update_free_access = FALSE;
126
+
127
+ /**
128
+ * Base URL (optional).
129
+ *
130
+ * If you are experiencing issues with different site domains,
131
+ * uncomment the Base URL statement below (remove the leading hash sign)
132
+ * and fill in the absolute URL to your Drupal installation.
133
+ *
134
+ * You might also want to force users to use a given domain.
135
+ * See the .htaccess file for more information.
136
+ *
137
+ * Examples:
138
+ * $base_url = 'http://www.example.com';
139
+ * $base_url = 'http://www.example.com:8888';
140
+ * $base_url = 'http://www.example.com/drupal';
141
+ * $base_url = 'https://www.example.com:8888/drupal';
142
+ *
143
+ * It is not allowed to have a trailing slash; Drupal will add it
144
+ * for you.
145
+ */
146
+ # $base_url = 'http://www.example.com'; // NO trailing slash!
147
+
148
+ /**
149
+ * PHP settings:
150
+ *
151
+ * To see what PHP settings are possible, including whether they can
152
+ * be set at runtime (ie., when ini_set() occurs), read the PHP
153
+ * documentation at http://www.php.net/manual/en/ini.php#ini.list
154
+ * and take a look at the .htaccess file to see which non-runtime
155
+ * settings are used there. Settings defined here should not be
156
+ * duplicated there so as to avoid conflict issues.
157
+ */
158
+ ini_set('arg_separator.output', '&amp;');
159
+ ini_set('magic_quotes_runtime', 0);
160
+ ini_set('magic_quotes_sybase', 0);
161
+ ini_set('session.cache_expire', 200000);
162
+ ini_set('session.cache_limiter', 'none');
163
+ ini_set('session.cookie_lifetime', 2000000);
164
+ ini_set('session.gc_maxlifetime', 200000);
165
+ ini_set('session.save_handler', 'user');
166
+ ini_set('session.use_cookies', 1);
167
+ ini_set('session.use_only_cookies', 1);
168
+ ini_set('session.use_trans_sid', 0);
169
+ ini_set('url_rewriter.tags', '');
170
+
171
+ /**
172
+ * If you encounter a situation where users post a large amount of text, and
173
+ * the result is stripped out upon viewing but can still be edited, Drupal's
174
+ * output filter may not have sufficient memory to process it. If you
175
+ * experience this issue, you may wish to uncomment the following two lines
176
+ * and increase the limits of these variables. For more information, see
177
+ * http://php.net/manual/en/pcre.configuration.php.
178
+ */
179
+ # ini_set('pcre.backtrack_limit', 200000);
180
+ # ini_set('pcre.recursion_limit', 200000);
181
+
182
+ /**
183
+ * Drupal automatically generates a unique session cookie name for each site
184
+ * based on on its full domain name. If you have multiple domains pointing at
185
+ * the same Drupal site, you can either redirect them all to a single domain
186
+ * (see comment in .htaccess), or uncomment the line below and specify their
187
+ * shared base domain. Doing so assures that users remain logged in as they
188
+ * cross between your various domains.
189
+ */
190
+ # $cookie_domain = 'example.com';
191
+
192
+ /**
193
+ * Variable overrides:
194
+ *
195
+ * To override specific entries in the 'variable' table for this site,
196
+ * set them here. You usually don't need to use this feature. This is
197
+ * useful in a configuration file for a vhost or directory, rather than
198
+ * the default settings.php. Any configuration setting from the 'variable'
199
+ * table can be given a new value. Note that any values you provide in
200
+ * these variable overrides will not be modifiable from the Drupal
201
+ * administration interface.
202
+ *
203
+ * Remove the leading hash signs to enable.
204
+ */
205
+ # $conf = array(
206
+ # 'site_name' => 'My Drupal site',
207
+ # 'theme_default' => 'minnelli',
208
+ # 'anonymous' => 'Visitor',
209
+ /**
210
+ * A custom theme can be set for the off-line page. This applies when the site
211
+ * is explicitly set to off-line mode through the administration page or when
212
+ * the database is inactive due to an error. It can be set through the
213
+ * 'maintenance_theme' key. The template file should also be copied into the
214
+ * theme. It is located inside 'modules/system/maintenance-page.tpl.php'.
215
+ * Note: This setting does not apply to installation and update pages.
216
+ */
217
+ # 'maintenance_theme' => 'minnelli',
218
+ /**
219
+ * reverse_proxy accepts a boolean value.
220
+ *
221
+ * Enable this setting to determine the correct IP address of the remote
222
+ * client by examining information stored in the X-Forwarded-For headers.
223
+ * X-Forwarded-For headers are a standard mechanism for identifying client
224
+ * systems connecting through a reverse proxy server, such as Squid or
225
+ * Pound. Reverse proxy servers are often used to enhance the performance
226
+ * of heavily visited sites and may also provide other site caching,
227
+ * security or encryption benefits. If this Drupal installation operates
228
+ * behind a reverse proxy, this setting should be enabled so that correct
229
+ * IP address information is captured in Drupal's session management,
230
+ * logging, statistics and access management systems; if you are unsure
231
+ * about this setting, do not have a reverse proxy, or Drupal operates in
232
+ * a shared hosting environment, this setting should be set to disabled.
233
+ */
234
+ # 'reverse_proxy' => TRUE,
235
+ /**
236
+ * reverse_proxy accepts an array of IP addresses.
237
+ *
238
+ * Each element of this array is the IP address of any of your reverse
239
+ * proxies. Filling this array Drupal will trust the information stored
240
+ * in the X-Forwarded-For headers only if Remote IP address is one of
241
+ * these, that is the request reaches the web server from one of your
242
+ * reverse proxies. Otherwise, the client could directly connect to
243
+ * your web server spoofing the X-Forwarded-For headers.
244
+ */
245
+ # 'reverse_proxy_addresses' => array('a.b.c.d', ...),
246
+ # );
247
+
248
+ /**
249
+ * String overrides:
250
+ *
251
+ * To override specific strings on your site with or without enabling locale
252
+ * module, add an entry to this list. This functionality allows you to change
253
+ * a small number of your site's default English language interface strings.
254
+ *
255
+ * Remove the leading hash signs to enable.
256
+ */
257
+ # $conf['locale_custom_strings_en'] = array(
258
+ # 'forum' => 'Discussion board',
259
+ # '@count min' => '@count minutes',
260
+ # );
@@ -1,7 +1,11 @@
1
1
  <?php
2
- $pub_dir = __DIR__ . '/../public';
2
+
3
+ $pub_dir = realpath(__DIR__ . '/../public');
3
4
  chdir($pub_dir);
4
5
  define('DRUPAL_ROOT', $pub_dir);
5
- require_once 'includes/bootstrap.inc';
6
- drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
7
- drupal_flush_all_caches();
6
+
7
+ if (file_exists($pub_dir . '/includes/bootstrap.inc')) {
8
+ require_once $pub_dir . '/includes/bootstrap.inc';
9
+ drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
10
+ drupal_flush_all_caches();
11
+ }
@@ -1,7 +1,11 @@
1
1
  <?php
2
- $pub_dir = __DIR__ . '/../public';
2
+
3
+ $pub_dir = realpath(__DIR__ . '/../public');
3
4
  chdir($pub_dir);
4
5
  define('DRUPAL_ROOT', $pub_dir);
5
- require_once 'includes/bootstrap.inc';
6
- drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
7
- drupal_flush_all_caches();
6
+
7
+ if (file_exists($pub_dir . '/includes/bootstrap.inc')) {
8
+ require_once $pub_dir . '/includes/bootstrap.inc';
9
+ drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
10
+ drupal_flush_all_caches();
11
+ }
@@ -1,5 +1,11 @@
1
1
  <?php
2
- chdir(__DIR__ . '/../public');
3
- require_once 'includes/bootstrap.inc';
4
- drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
5
- drupal_flush_all_caches();
2
+
3
+ $pub_dir = realpath(__DIR__ . '/../public');
4
+ chdir($pub_dir);
5
+ define('DRUPAL_ROOT', $pub_dir);
6
+
7
+ if (file_exists($pub_dir . '/includes/bootstrap.inc')) {
8
+ require_once $pub_dir . '/includes/bootstrap.inc';
9
+ drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
10
+ drupal_flush_all_caches();
11
+ }
@@ -1,6 +1,6 @@
1
1
  <?php
2
2
 
3
- require '../../vendor/autoload.php';
3
+ require realpath(__DIR__ . '/../vendor/autoload.php');
4
4
 
5
5
  use Symfony\Component\Yaml\Yaml;
6
6
 
data/skel/skel.yml CHANGED
@@ -3,6 +3,15 @@ project_types:
3
3
  drupal:
4
4
  bonthug_files:
5
5
  - flush_drupal_cache.php
6
+ drupal6:
7
+ bonthug_files:
8
+ - flush_drupal_cache.php
9
+ drupal7:
10
+ bonthug_files:
11
+ - flush_drupal_cache.php
12
+ drupal8:
13
+ bonthug_files:
14
+ - flush_drupal_cache.php
6
15
  php:
7
16
  rails3:
8
17
  rails4:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bonethug
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.66
4
+ version: 0.0.67
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-12 00:00:00.000000000 Z
12
+ date: 2013-12-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -337,22 +337,6 @@ dependencies:
337
337
  - - ! '>='
338
338
  - !ruby/object:Gem::Version
339
339
  version: '0'
340
- - !ruby/object:Gem::Dependency
341
- name: wdm
342
- requirement: !ruby/object:Gem::Requirement
343
- none: false
344
- requirements:
345
- - - ! '>='
346
- - !ruby/object:Gem::Version
347
- version: 0.1.0
348
- type: :runtime
349
- prerelease: false
350
- version_requirements: !ruby/object:Gem::Requirement
351
- none: false
352
- requirements:
353
- - - ! '>='
354
- - !ruby/object:Gem::Version
355
- version: 0.1.0
356
340
  description: Project Skeleton Manager
357
341
  email:
358
342
  - breaks.nz@gmail.com
@@ -394,6 +378,14 @@ files:
394
378
  - skel/base/log/.gitkeep
395
379
  - skel/base/public/favicon.ico
396
380
  - skel/base/public/robots.txt
381
+ - skel/project_types/drupal/.gitignore
382
+ - skel/project_types/drupal/composer.json
383
+ - skel/project_types/drupal/lib/flush_drupal_cache.php
384
+ - skel/project_types/drupal/public/sites/all/themes/project/.keep
385
+ - skel/project_types/drupal/public/sites/default/development.settings.php
386
+ - skel/project_types/drupal/public/sites/default/production.settings.php
387
+ - skel/project_types/drupal/public/sites/default/settings.php
388
+ - skel/project_types/drupal/public/sites/default/staging.settings.php
397
389
  - skel/project_types/drupal6/.gitignore
398
390
  - skel/project_types/drupal6/composer.json
399
391
  - skel/project_types/drupal6/lib/flush_drupal_cache.php
@@ -524,7 +516,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
524
516
  version: '0'
525
517
  requirements: []
526
518
  rubyforge_project:
527
- rubygems_version: 1.8.24
519
+ rubygems_version: 1.8.23
528
520
  signing_key:
529
521
  specification_version: 3
530
522
  summary: Bonethug