Skip to content

Commit

Permalink
AmsterdamPHP#22: Fixed some vagrant/ansible things like:
Browse files Browse the repository at this point in the history
- The location of the writable folder
- The disabling of the default host
- The apache2 php5 module
  • Loading branch information
Pascal de Vink committed Sep 23, 2014
1 parent 5378dec commit 8d6545a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ansible/provision.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
vars:
root_folder: /var/www/amsphp
document_root: "{{ root_folder }}/web/"
write_to_folder: /dev/shm
write_to_folder: /var/shm
dbname: amsphp
dbuser: root
dbpasswd: root
Expand Down
1 change: 1 addition & 0 deletions ansible/tasks/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
- php5-intl
- php5-memcached
- php5-xdebug
- libapache2-mod-php5

# Configurations

Expand Down
6 changes: 6 additions & 0 deletions ansible/tasks/host.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@
command: a2ensite amsphp-vhost.conf
notify: restart apache

- name: Apache | Disable Default Host Config
command: a2dissite default
ignore_errors: true
notify: restart apache

- name: Apache | Disable Default Host Config
command: a2dissite 000-default.conf
ignore_errors: true
notify: restart apache

- name: Apache | Ensure application files are present
Expand Down
2 changes: 1 addition & 1 deletion app/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ protected function getContainerBaseClass()
public function getLogDir()
{
if (in_array($this->environment, array('dev', 'test'))) {
return '/dev/shm/amsphp/logs';
return '/var/shm/amsphp/logs';
}

return parent::getLogDir();
Expand Down

0 comments on commit 8d6545a

Please sign in to comment.