Some handy commands for Heroku added to README.md.
Used 32 times
D
Dale Zak
Usage
Run this command in your Rails app directory in the terminal:
rails app:template LOCATION="https://railsbytes.com/script/xkjswK"
Template Source
Review the code before running this template on your machine.
inject_into_file 'README.md' do <<~EOF
#### Heroku Deploy
```
git push heroku master
```
#### Heroku Seed
```
heroku rake db:schema:load
heroku run rake db:migrate
heroku run rake db:seed
```
#### Heroku Database
```
heroku maintenance:on
heroku pg:reset DATABASE
heroku run rake db:migrate
heroku run rake db:seed
heroku maintenance:off
heroku restart
```
#### Heroku Server
```
heroku restart
```
#### Heroku Console
```
heroku run rails console
```
#### Heroku Logs
```
heroku logs -p web -t
heroku logs -p worker -t
```
EOF
end