Skip to content

Commit c2e9b38

Browse files
committed
Updated README;
Fixed some warnings.
1 parent aed9233 commit c2e9b38

File tree

4 files changed

+23
-11
lines changed

4 files changed

+23
-11
lines changed

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
1-
Drupal Demo Framework / DF
2-
=========
1+
# Drupal Demo Framework / DF
2+
3+
This assumes that you want to install the DemoFramework in a Vagrant VM.
4+
35
You should install http://drupal.org/project/df as described on https://drupal.org/node/2012876.
46
But since that didn't work for me and I went crazy on the ruby gems, chef and version dependencies
57
I created a couple of simple shell scripts.
68

79
Installing a LAMP server and Drupal site isn't that hard and I believe you shouldn't have to install a shitload of ruby.
810

911
Just make sure you have Vagrant and Virtualbox installed and try ./go.sh
12+
13+
## Requirements
14+
15+
+ Debian wheezy 7.1 basebox (see Vagrantfile)
16+
+ Enable the image_allow_insecure_derivatives configuration variable in your settings.php (see install script)
17+
+ Drush version 5.10.0
18+
+ Apache runs with vagrant userid to allow changes in /files
19+
20+
### Other things that you might want to changes
21+
22+
+ Caching is disabled (don't no why)

Vagrantfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
3535
# config.vm.provision :shell, :path => "provision/redis-server.sh"
3636
# config.vm.provision :shell, :path => "provision/solr.sh"
3737
# config.vm.provision :shell, :path => "provision/varnish.sh"
38-
39-
# Oh My Shell install script
40-
config.vm.provision :shell, :path => "provision/oms.sh"
38+
# config.vm.provision :shell, :path => "provision/oms.sh"
4139

4240
# Install Drupal Demo Framework
4341
config.vm.provision :shell, :path => "install_demo.sh"

install_demo.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#!/bin/sh
22

3-
cd /vagrant
4-
drush make ./build-df.make ./docroot
3+
perl -pi -w -e 's/www-data/vagrant/g;' /etc/apache2/envvars
4+
perl -pi -w -e 's/memory_limit = 128M/memory_limit = 512M/g;' /etc/php5/apache2/php.ini
5+
perl -pi -w -e 's/;date.timezone =/date.timezone = Europe\/Amsterdam/g;' /etc/php5/apache2/php.ini
56

67
cp -a /vagrant/demo /etc/apache2/sites-available
78
a2ensite demo
89

9-
perl -pi -w -e 's/www-data/vagrant/g;' /etc/apache2/envvars
10-
perl -pi -w -e 's/memory_limit = 128M/memory_limit = 512M/g;' /etc/php5/apache2/php.ini
11-
perl -pi -w -e 's/;date.timezone =/date.timezone = Europe\/Amsterdam/g;' /etc/php5/apache2/php.ini
10+
cd /vagrant
11+
drush make ./build-df.make ./docroot
1212

1313
apache2ctl restart
1414

@@ -22,4 +22,3 @@ drush site-install df --site-name=demo --root=/vagrant/docroot -y
2222

2323
cd /vagrant/docroot
2424
sh profiles/df/modules/dfs/dfs_wem/dfs_wem.sh
25-

provision/base.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ aptitude install -y \
77
php5 \
88
php5-common \
99
php5-cli \
10+
php5-dev \
11+
php-pear \
1012
php5-imagick \
1113
php5-gd \
1214
php5-mysql \

0 commit comments

Comments
 (0)