Frequently used Heroku commands





Create project in ror
Open git console
Change to project directory
Enter command heroku create
To rename the heroku project, heroku rename <new name> --app <old name>
To add project to git repository git init                                                       Note:It should enter at the first time only(no need after every  modification)
                                              git add .
                                              git commit -m "<comment>"
                                              git remote add <name> git@heroku.com:<project name>.git    
Note:It should enter at the first time only(no need after every  modification) 
                                              git push <name> master
To clone an existing project from git  git clone git@heroku.com:<project name>.git
Before changing database, application should be in maintenance mode
                              heroku maintenance:on                 
                              heroku maintenance:off 
Database pull         heroku db:pull --app <name>
Database push       heroku db:push --app <name>



Comments

Popular posts from this blog

Rails Memcache issues

Enabling password authentication for new ec2 box | ssh, ssh config, EC2 setup, new user in EC2, PasswordAuthentication

What's the difference between "include" and "require" in Ruby?