Skip to content

fotonauts/activr_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Activr demo

Demo application for activr gem.

A MongoDB database is needed.

A test app is available on heroku, feel free to create an account and try it.

More information on our tumblr

Technologies:

Code Climate

Install

Install imagemagick first. For example on mac:

$ brew install imagemagick

Change mongodb hosts setting in config/mongoid.yml file.

Then:

$ bundle install
$ rake db:seed
$ rails s

Reset with:

$ rm -rf public/uploads/
$ rake db:reset

Setup Resque workers:

$ brew install redis
$ redis-server /usr/local/etc/redis.conf

$ resque-web

$ VVERBOSE=1 QUEUE=* rake environment resque:work

Heroku

To deploy on heroku:

$ heroku create

$ heroku config:set MONGOHQ_URI=mongodb://<user>:<password>@alex.mongohq.com:10056/activr_demo
$ heroku config:set ACTIVR_FORCE_SYNC=true
$ heroku config:set S3_ACCESS_KEY_ID=<access key id>
$ heroku config:set S3_SECRET_ACCESS_KEY=<secret access key>
$ heroku config:set S3_BUCKET=activr

$ heroku config

$ git push heroku master

$ heroku logs --tail

Debug:

$ heroku run rails console

References