It’s recommended that you install rembrant with virtualenv.
First, clone the project from Github:
$ git clone git://github.com/honza/rembrant.git
$ cd rembrant
Create your environment and install the requirements:
$ virtualenv env --no-site-packages
$ source env/bin/activate
(env) $ pip install -r requirements.txt
Initialize your library:
$ python rembrant.py init
This will create a library.json file in the rembrant/ directory. Next, you will want to symlink your photo directory to rembrant/photos. Then, load your photos into the library:
$ python rembrant.py load
This will add your photos to the library.json file. It will assign an id to each photo and a sha digest to make sure it’s unique. It will also create 2 thumbnails for each photo. One that’s 100px wide and one that’s 800px wide. By default, it will place the thumbnails to the cache variable set in your library file.
Next, we will export your gallery to HTML.
$ python rembrant.py export
This will create a static site representation of your gallery. It will create a detail page for each photo, and a blog-like feed of photos. The HTML generated by this command will be placed in the build/ directory.
Next, we will deploy this code to AWS S3.
$ python rembrant.py deploy
This will copy all of the files in build/ to your S3 bucket.
Note
Before you can deploy code to AWS S3, please make sure that the aws_key, aws_secret and aws_bucket settings are populated.