Use Git dependencies with npm and Node on Heroku

FYI if its on GitHub you can just specify the username/repository and npm will do the rest. { “name”: “application-name” , “version”: “0.0.1” , “private”: true , “dependencies”: { “coffee-script”: “1.1.3” , “express”: “2.5.0” , “less”: “1.1.5” , “jade”: “0.17.0” , “connect-redis”: “1.2.0” , “hiredis”: “0.1.13” , “redis”: “0.7.1” , “bcrypt”: “0.4.1” , “promised-io”: “0.3.0” … Read more

Heroku Local [WARN] No ENV file found

Add an .env file. This files contains the local VARS that are different in your local setting from the heroku environment. However, if everything runs fine, you can just ignore the warning, or do touch .env. You can also differentiate by creating a Procfile.local file and run heroku local -f Procfile.local, to force using a … Read more

ERROR: extension “btree_gist” must be installed in schema “heroku_ext”

I have developed a monkey-patch solution that is, well, definitely a hack, but better than pre-dating migrations, or deleting lines from schema.rb. Put this in config/initializers. I called mine _enable_extension_hack.rb to make sure it gets loaded early. module EnableExtensionHerokuMonkeypatch # Earl was here def self.apply_patch! adapter_const = begin Kernel.const_get(‘ActiveRecord::ConnectionAdapters::PostgreSQLAdapter’) rescue NameError => ne puts “#{self.name} … Read more

Upload to heroku without git

You can use a plugin heroku push that is built by one of the Heroku engineers. You can find it at https://github.com/ddollar/heroku-push. But there isn’t a FTP style upload available if that’s what you’re looking for. Also, just because Heroku uses Git doesn’t mean you have to have a Github account (since you mention having … Read more

Heroku SSL on root domain

Wow…this took me forever, and a bunch of info on the web was wrong. Even Heroku’s docs didn’t seem to indicate this was possible. But Jesper J’s answer provides a hint in the right direction: it works with DNSimple’s ALIAS record which I guess is some new sort of DNS record they created. I had … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)