Works also on Linux Mint LMDE, see Guide for details. Even if I got everything running, I'm still prefering to deploy to my own servers, it was a hassle. Sometimes deploying free applications is dead slow.
- Installing the Heroku on Ubuntu
wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh - Login
heroku login - Add Repo
git remote add heroku git@heroku.com:autocomplete-has-many-demo.git - Push
git push heroku master - Update in Gemfile, changing the source speeds things up if Heroku has connection issues with Rubygems
source 'http://bundler-api.herokuapp.com'
ruby '2.0.0'
gem 'pg'
gem 'rails_12factor'
group :development do
# ...
gem 'sqlite3'
endSometimes sqlite had to be removed all together.
-
For Rails 4 apps a binary rails is necessary, it can be created with
rake rails:update:binand then pushed to heroku -
Latest Log Output
heroku logs -
Getting taglibs to Heroku via .gitignore
# HAS: 20131213: for Heroku deployment
# app/views/taglibs/auto/**/*
# config/hobo_routes.rb- Asset handling in
config/application.rb
# HAS: 20131213 needed for Heroku
config.assets.initialize_on_precompile = false- Modification in
config/production.rb
# HAS: 20131213: for Heroku deployment
config.hobo.read_only_file_system=true- Running a migration
heroku rake db:migrate - Restarting app:
heroku restart