Category Archives: web programming

How to push a particular branch to Heroku

This is just a shortcut to a command I found here: http://devcenter.heroku.com/articles/git This is my .git/config: 1234567891011121314151617[core]   repositoryformatversion = 0   filemode = true   bare = false   logallrefupdates = true   ignorecase = true [heroku]   account = personal [remote "heroku"]   url = git@heroku.personal:censo2010.git   fetch = +refs/heads/*:refs/remotes/heroku/* [remote "origin"]   [...]

Also posted in developer tools, linux/unix world, programming | Tagged , , , , , , , , | Leave a comment

Paperclip requires multipart set to true in form_for

Even though I’ve been using Paperclip for a few years now, I still forget to add that one parameter to the form. You know? The one that will actually make things work. 1234<%= form_for :file, :html => { :method => :post, :multipart => true} do |f| -%>   <%= f.file_field :attachment %>     <%= [...]

Also posted in Ruby programming, software engineering | Tagged , , , , , | 2 Comments

How to push a Postgres database to your Heroku app

But why?

You have a local Postgres database that’s ready to go and you want your server to have the same database.

Also posted in open source, Ruby programming | Tagged , , , , , | Leave a comment