installation instructions

This commit is contained in:
Nicolas Lœuillet 2013-08-07 19:31:11 +02:00
parent 1d517de67b
commit 145f50402e

View file

@ -19,6 +19,20 @@ poche must have write access on assets, cache and db directories.
[PHP cURL](http://www.php.net/manual/en/book.curl.php) & [tidy_parse_string](http://www.php.net/manual/en/tidy.parsestring.php) are recommended.
## twig
poche now uses twig for templating. You have to install twig.
Install composer in your project :
```bash
curl -s http://getcomposer.org/installer | php
```
Install via composer :
```bash
php composer.phar install
```
If you don't want to install twig by yourself, you can download [this file](http://static.inthepoche.com/files/poche-1.0-latest-with-twig.zip).
## storage in sqlite
You have to install [sqlite for php](http://www.php.net/manual/en/book.sqlite.php) on your server.
@ -30,16 +44,7 @@ Execute /install/mysql.sql file in your database.
## storage in postgres
Execute /install/postgres.sql file in your database.
Install composer in your project :
```bash
curl -s http://getcomposer.org/installer | php
```
Install via composer :
```bash
php composer.phar install
```
## updating from poche 0.3
## upgrading from poche <= 0.3
With poche <= 0.3, all your datas were stored in a sqlite file. The structure of this file changed.
You have to execute http://yourpoche/install/update_sqlite_from_0_to_1.php before using this new version.