Blog Archives

Heroku permission denied for database “postgres”

FATAL: permission denied for database “postgres” DETAIL: User does not have CONNECT privilege. Run this command to solve this error: heroku addons | grep POSTGRES Advertisements

Tagged with: , ,
Posted in Heroku, Uncategorized

redis integeration in heroku

Follow all steps given here: https://devcenter.heroku.com/articles/redistogo#using-with-rails-2-3-3 Explanation of some steps: heroku config –app heroku-app-name | grep REDISTOGO_URL output: REDISTOGO_URL: redis://user-name:password@redis-server:11247/

Posted in Heroku, Ruby on Rails

Heroku Commands and difference between rails on local

1) Run query console in Heroku  heroku run console 2) Reset DB on Heroku  heroku run rake db:reset 3) Creating DB on Heroku  heroku run rake db:create 4) Migrating DB on Heroku  heroku run rake db:migrate 5) Seeds runing on

Tagged with: ,
Posted in Heroku

Rails Command on environment basics

Commands to run on environment basic: To run db migrations: rake db:migrate RAILS_ENV= production To run Console: rails c production To run Server: rails s -e production

Tagged with:
Posted in Heroku, Ruby on Rails

Permission denied (publickey)

Permission denied (publickey). fatal: The remote end hung up unexpectedly 1. You need to install Heroku Toolbelt if not installed yet. wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh 2. In project Directory in terminal run this command SSH_AUTH_SOCK=0 3. Check available keys

Tagged with: , , , ,
Posted in Heroku

binding your app to heroku

1) Add toolbelt plugin of heroku wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh 2) create heroku app if not exists, with command heroku create 3) copy ‘Git Url’ from heroku app settings 4) in terminal git remote add heroku “git-ul copied from heroku app settings”

Posted in Heroku

how to run console or query terminal in heroku

For Rails >= 3  heroku run console For Rails 2 heroku run ruby script/console

Posted in Heroku

Heroku usefull Commands

  Access heroku certain app log while using another app for same project. command: heroku logs –app app_name example: heroku logs –app beu_heroku

Posted in Heroku
StackOverFlow
Categories
Archives