removing .env from .gitignore file
# to write Procfile
echo web: vendor/bin/heroku-php-apache2 public/ > Procfile
# to create heroku project
heroku create
# to set heroku app config
heroku config:set APP_KEY=$(php artisan --no-ansi key:generate --show)
# to push to heroku
git push heroku master
# to open heroku website
heroku open
# to add pgsql addons
heroku addons:create heroku-postgresql:hobby-dev
# to know config
heroku config
DB_CONNECTION=pgsql
username:password@host:port/database
heroku run bash
exit