martes, 20 de mayo de 2014

Var | Ruby


$ A global variable
@ An instance variable
[a-z] or _ A local variable
[A-Z] A constant
@@ A class variable

Pull db from Production to Staging | HEROKU

  project git:(master): heroku config --app project-production   
  project git:(master): heroku pgbackups:restore DATABASE 'production_url_dump_db' --app bookugly-staging 

'production_url_dump_db' = heroku pgbackups:url --app project-production

Why is Github asking for username/password | Github

 Don't use HTTP use SSH instead.  
 change => https://github.com/USER/project.git  
 to => git@github.com:USER/project.git  
 you can do it in .git/config file