Skip to content

Latest commit

 

History

History
116 lines (87 loc) · 2.35 KB

README.md

File metadata and controls

116 lines (87 loc) · 2.35 KB

Pamplemousse

Requirements

  • mysql
  • PHP 5.6+ with ext-exif and imagick extensions

Installation

Run the following:

git clone https://github.com/astranchet/pamplemousse.git
cd pamplemousse
curl -s http://getcomposer.org/installer | php
php composer.phar install
cp config/app.yml.dist config/app.yml

Create database (see app.yml for parameters) then run migrations:

./bin/doctrine migrations:migrate

Settings

Edit config/app.yml:

  • Create upload dir (web/upload by default)
  • Configure database parameters
  • Configure users (see Tools)
  • Configure homepage with site parameters
  • Configure photo filters with kids and tags parameters

Run locally

php -S localhost:8000 -t web .router.php
compass watch

Migrations

Run migration on your server:

./bin/doctrine migrations:migrate

Generate migration template file with:

./bin/doctrine migrations:generate

Tools

Generate password

Generate encoded password:

./bin/generate-password
Password: foo
5FZ2Z8QIkA7UTZ4BYkoC+GsReLf569mSKDsfods6LYQ8t+a8EW9oaircfMpmaLbPBh4FOBiiFyLfuZmTSUwzZg==%

Generate thumbnails

Generate new thumbnails (after changing size for instance):

./bin/generate-thumbnails

Trouble shooting

Display errrors

  • Set debug:true in app.yml and read log/app.log

An exception occured in driver: SQLSTATE[HY000] [2002] No such file or directory

  • Database parameters in app.yml are incorrect. Sometimes, locally, 127.0.0.1 works better for host than localhost.

Error when uploading a photo in admin

  • Make sure upload dir exists.
  • Make sure ext-exif and imagick PHP extensions are installed:
php --modules | grep imagick
php --modules | grep exif

Used components

Frameworks

Front

Admin