Laravel with best practices for deployment on Heroku. Our articles on Medium
Heroku Postgres
(for Database)Heroku Redis
(for Cache, Queue and Session)- Migrate Database automatically on deploy
- Logging
- With Scheduler
https://devcenter.heroku.com/articles/heroku-cli
composer create-project autoidle/laravel-heroku:dev-master my-laravel-heroku
cd my-laravel-heroku
git init
git add .
git commit -m 'Fresh Laravel installation'
heroku create my-laravel-heroku --region eu --addons=heroku-postgresql:hobby-dev,heroku-redis:hobby-dev
heroku config:set APP_DEBUG=true LOG_CHANNEL=errorlog
heroku config:set APP_KEY=$(php artisan --no-ansi key:generate --show)
git push heroku master
heroku open
heroku logs -t
1. Laravel provides a quick way to scaffold all of the routes and views you need for authentication using one simple command:
php artisan make:auth
git add .
git commit -m 'Add Laravel Auth'
git push heroku master
heroku open
Code difference between Laravel and Laravel on Heroku
We are building a Heroku Add-on that helps you save money by automatically putting your non-critical apps to sleep after a period of inactivity.