Skip to content

Instantly share code, notes, and snippets.

@haslinger
Last active December 31, 2015 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haslinger/8036900 to your computer and use it in GitHub Desktop.
Save haslinger/8036900 to your computer and use it in GitHub Desktop.

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'
end

Sometimes sqlite had to be removed all together.

  • For Rails 4 apps a binary rails is necessary, it can be created with rake rails:update:bin and 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment