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

scp command usage guide

ROR HEROKU Working with file storage like paperclip in heroku for free of cost ( paperclip and dropbox) paperclip-dropbox config | ROR, HEROKU, file storage, paperclip, in heroku, free of cost, paperclip, dropbox, paperclip-dropbox config