Provide example configuration

Provide an example configuration which is automatically made as the default configuration if no other configuration is provided. This makes starting the server for development as per the instructions in the README simpler and works without any additional actions. Without this, there is no config file and the site will not be served.
This commit is contained in:
Fabrizio Lungo 2017-04-05 14:58:29 +01:00 committed by Alex Grintsvayg
parent b270c2be46
commit d5b71a9e17
2 changed files with 6 additions and 0 deletions

2
data/config.php.example Normal file
View file

@ -0,0 +1,2 @@
<?php
return array();

4
dev.sh
View file

@ -1,3 +1,7 @@
#!/bin/bash
if [ ! -e "data/config.php" ]; then
cp "data/config.php.example" "data/config.php"
fi
php7.0 --server localhost:8000 --docroot web/ web/index.php