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>.gitOpen 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
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
Post a Comment