autoidle / laravel-heroku
Latest Laravel with best practices for deployment on Heroku.
Installs: 32
Dependents: 0
Suggesters: 0
Security: 0
Stars: 17
Watchers: 4
Forks: 9
Open Issues: 10
Type:project
Requires
- php: 7.3.*
- fideloper/proxy: ^4.0
- laravel/framework: 5.8.*
- laravel/tinker: ^1.0
- predis/predis: ^1.1
Requires (Dev)
- beyondcode/laravel-dump-server: ^1.0
- filp/whoops: ^2.0
- fzaninotto/faker: ^1.4
- mockery/mockery: ^1.0
- nunomaduro/collision: ^3.0
- phpunit/phpunit: ^8.2
- dev-master
- v5.8.35
- v5.8.28
- v5.8.27
- v5.8.26
- dev-dependabot/composer/symfony/http-kernel-4.4.50
- dev-dependabot/composer/filp/whoops-2.14.0
- dev-dependabot/composer/league/flysystem-1.1.4
- dev-dependabot/add-v2-config-file
- dev-dependabot/composer/mockery/mockery-1.4.3
- dev-dependabot/composer/nunomaduro/collision-3.2.0
- dev-dependabot/composer/fzaninotto/faker-1.9.2
- dev-dependabot/composer/fideloper/proxy-4.4.1
- dev-dependabot/composer/laravel/framework-5.8.38
- dev-dependabot/composer/symfony/http-foundation-4.4.7
This package is auto-updated.
Last update: 2024-09-30 01:34:34 UTC
README
Laravel with best practices for deployment on Heroku. Our articles on Medium
Works out of the box
Features
Heroku Postgres
(for Database)Heroku Redis
(for Cache, Queue and Session)- Migrate Database automatically on deploy
- Logging
- With Scheduler
Deploy to Heroku
Setup locally and deploy to Heroku
1. Install Heroku CLI
https://devcenter.heroku.com/articles/heroku-cli
2. Create a new project
composer create-project autoidle/laravel5-heroku my-laravel-heroku
3. Tracking your app in Git
cd my-laravel-heroku
git init
git add .
git commit -m 'Fresh Laravel installation'
4. Add Heroku app
heroku create my-laravel-heroku --region eu --addons=heroku-postgresql:hobby-dev,heroku-redis:hobby-dev
5. Set ENV variables
heroku config:set APP_DEBUG=true
heroku config:set APP_KEY=$(php artisan --no-ansi key:generate --show)
6. Push your code to laravel
git push heroku master
7. Checkout your Laravel installation on Heroku
heroku open
8. Checkout the log (Optional)
heroku logs -t
Extend with Laravel Auth (Optional)
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
2. Add changes to Git
git add .
git commit -m 'Add Laravel Auth'
3. Deploy to Heroku
git push heroku master
4. Checkout your Laravel installation on Heroku with Auth
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.