Go to file
2014-12-28 07:12:25 +01:00
app transition to persistent > 2.0. still buggy 2014-12-23 05:02:26 +01:00
config transition to persistent > 2.0. still buggy 2014-12-23 05:02:26 +01:00
deploy yesod init 2014-08-09 20:33:22 +02:00
Handler removed many compile time warnings 2014-12-28 07:12:25 +01:00
messages yesod init 2014-08-09 20:33:22 +02:00
Settings removed many compile time warnings 2014-12-28 07:12:25 +01:00
static changed default album image 2014-12-03 23:32:07 +01:00
templates removed many compile time warnings 2014-12-28 07:12:25 +01:00
tests yesod init 2014-08-09 20:33:22 +02:00
.gitignore changed storage location of files 2014-08-18 03:09:03 +02:00
Application.hs removed many compile time warnings 2014-12-28 07:12:25 +01:00
devel.hs yesod init 2014-08-09 20:33:22 +02:00
eidolon.cabal condensing code in admin interface 2014-12-27 23:09:51 +01:00
Foundation.hs removed many compile time warnings 2014-12-28 07:12:25 +01:00
Helper.hs removed many compile time warnings 2014-12-28 07:12:25 +01:00
Import.hs admin interface added incl. profilemanipulation 2014-09-06 08:56:36 +02:00
Model.hs removed many compile time warnings 2014-12-28 07:12:25 +01:00
README.md Readme updated 2014-12-26 23:38:25 +01:00
Settings.hs transition to persistent > 2.0. still buggy 2014-12-23 05:02:26 +01:00

#eidolon

##Introduction

A image gallery service written in Haskell as a yesod webapp

##Installation

###Dependencies

A working Haskell capable environment. For that you will need ghc and cabal-install.

update your package list with cabal update and upgrade cabal-install, if necessary.

Additionally to Haskell and its dependencies you will need the following software and libraries:

  • alex
  • happy
  • libmagick-dev

###Building

get the source with

git clone https://github.com/nek0/eidolon.git

It's generally a good idea to create a sandbox for compiling. To do so cd into the project directory and invoke

cabal sandbox init

Then install all dependencies with the following command. This may lead you into dependency hell, as I am working with very new libraries.

cabal install --only-dependencies

After installing all dependencies you can configure and build the software with

cabal configure
cabal build

##Deploying

After compiling you will find an executable called eidolon in dist/build/eidolon/. Copy or link it anywhere you want. The executable needs to be accompanied by the folders config and static and their contents. It's best to copy them to your desired destination.

Also check config/settings.yml and set the values there accrding to your configuration.

It may also be necessery to create a reverse proxy to your gallery. I would recommend using nginx.

##Starting

You can start the gallery now by running the executable. You need to provide an environment argument, which can be Development, Testing, Staging or Production.

Since eidolon will block your console, I recommend wrapping a init-script around it. how you can do that is written in my blog.