Tag Archives: heroku

community engine, S3, Heroku

1) clone the source code from https://github.com/bborn/ce-heroku 2) build and deploye to heroku 3) add addon sendgrid to your application 4)made necessary changes in application_config.rb example :app_host => ‘your hostname’, :community_name => “your community name”, :s3_credentials => { :access_key_id => … Continue reading

Posted in ruby on rails | Tagged , , , , , , | Leave a comment

Refinery Hosting on Heroku

Prerequisites 1) The Ruby language version 1.9.3 or higher 2) A working installation of ImageMagick 1) create a gemset using RVM rvm use –create ruby-1.9.3@refinery 2)Installing Refinery gem install refinerycms 3) Creating a Refinery application refinerycms mycms 4) Starting up … Continue reading

Posted in ruby on rails, web development | Tagged , , , , , , , | Leave a comment

configure S3 in spree, Heroku

1) add gem ‘aws-sdk’ and then bundle install. add to spree.rb located at config/intializers/spree.rb. you don’t want to change anything in this code attachment_config = { s3_credentials: { access_key_id: ENV[‘AWS_ACCESS_KEY_ID’], secret_access_key: ENV[‘AWS_SECRET_ACCESS_KEY’], bucket: ENV[‘S3_BUCKET_NAME’] }, storage: :s3, s3_headers: { “Cache-Control” … Continue reading

Posted in ecommerce, web development | Tagged , , , , , , | Leave a comment

heroku add second email

create new public/private key for new email as follows 1) ssh-keygen -t rsa -C “mvjohn@klairvoynat.com” 2) provide new file name in which to save the key (/home/.ssh/seckey) 3) Then add your new key to the ssh-agent:- ssh-add ~/.ssh/seckey 4) Then … Continue reading

Posted in ROR, Ruby, ruby on rails, web development | Tagged , | Leave a comment

spree with Heroku and Amazon S3

A) spree installation  1) add in gem file and bundle install gem ‘spree’ gem ‘spree_auth_devise’ gem ‘spree_gateway’, :git => ‘git://github.com/spree/spree_gateway.git’, :branch => “1-3-stable” 2) rails g spree:install 3) bundle exec rake spree_auth:install:migrations 4) bundle exec rake db:migrate 5)change the following line … Continue reading

Posted in rails, ROR, ruby on rails, web development | Tagged , , , , , , , , , | 1 Comment

Heroku deployment rails 3.1 – isn’t precompiled error

Add the following  line to the production.rb file config.assets.precompile += %w( public.js public.css  )     http://www.klairvoyant.in

Posted in rails, ROR, ruby on rails, web development | Tagged , , | Leave a comment

Rails 3.1 Error while – heroku rake db:migrate

solution Added these to Gem file. since using mysql for development and test required mysql and for heroku(production) required postrgessql group :development, :test do gem ‘mysql2’ end group :production do # gems specifically for Heroku go here gem “pg” end … Continue reading

Posted in rails, ROR, ruby on rails, web development | Tagged , , | Leave a comment

How to get data from heroku to your system

1) Install the latest heroku gem 2) Install taps gem 3) execute the command heroku db:pull for more 1) http://devcenter.heroku.com/articles/taps 2) http://blog.heroku.com/archives/2009/3/18/push_and_pull_databases_to_and_from_heroku/ http://www.klairvoyant.in

Posted in rails, ruby on rails | Tagged , , | Leave a comment