/sitepoint-async-upload

Source code for Asynchronous File Uploads in Rails article on Sitepoint

Primary LanguageRuby

Source code for the Asynchronous File Uploading with Rails article on SitePoint, created by Ilya Bodrov (radiant-wind.com).

Working demo.

Instructions for deploying to Heroku

Rename config/secrets.yml.example to config/secrets.yml

Populate production section with your own aws_access_key_id and aws_secret_key.

Also generate secret key for production:

rake secrets

and add it to config/secrets.yml

Finally run:

RAILS_ENV=production rake heroku:secrets

直接运行

rails s

Change bucket name in config/initializers/dragonfly.rb with your own bucket name. Note: Add bucket without dots to aviod this error.