On heroku, is there absolutely no way to redirect an https naked domain on heroku to it’s non naked domain with wwws?

The best idea we have found so far is to setup two Amazon EC2 micro machine instances with a small bit of nginx configuration. Then, provision two elastic IP addresses to point to those EC2 instances and point 2 A records to those IP addresses. This way, if something goes wrong on the hardware, you … Read more

Heroku debugging

The Cedar stack in Heroku does not appear to be responsive to the LOG_LEVEL config (env) variable that works for previous stacks (I use the logging:expanded addon). I tried setting LOG_LEVEL to both debug and DEBUG without success. Only by setting config.log_level = :debug in config/environments/production.rb am I able to see the output of ‘logger.debug’.

Deploying Ruby on Rails – Is there a good alternative for Heroku? [closed]

Yes there are This is a very good post I found on the subject Heroku Alternatives : For Deploying Rails Applications I went over the options there one by one and, to my humble opinion, OpenShift is the best option for a small-medium website, at least for the beginning of developing and creating a POC\Prototype … Read more

Postgres on Heroku and dumping single table to dump file

You can dump a single table of data like so: $ pg_dump –no-acl –no-owner -h [host ip].compute-1.amazonaws.com -U [user name] -t [table name] –data-only [database name] > table.dump You can get all of the values needed with this: $ heroku pg:credentials:url [DATABASE] -a [app_name] Connection info string: “dbname=[database name] host=[host ip].compute-1.amazonaws.com port=5432 user=[user name] password=[password] … Read more

How can I invoke npm on heroku command line (to install bower components)?

You can also setup a postintall command, something like this in your package.json “dependencies”: { “bower”: “0.6.x” }, “scripts”: { “postinstall”: “./node_modules/bower/bin/bower install” } Then npm install will also install bower dependencies. Pros : one command to rule them all. Cons : you unnecessarily embed bower as a dependency.

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