Heroku is a popular PaaS that allows you to deploy your application’s in no time. But, learning how to do that can be confusing, especially for PHP developers. In this tutorial I’ll cover basic steps which will help you to deploy your Laravel 4 application on Heroku. First let’s download Laravel:
1 |
composer create-project laravel/laravel --prefer-dist laravel |
After that, enter in laravel directory:
1 |
cd laravel |
and initialize new git repository:
1 |
git init |
Now, create .gitignore file and put everything you want to ignore from git tracking. You can use Laravel’s default .gitignore file, just remove composer.lock from it:
1 2 3 4 5 6 7 8 |
/bootstrap/compiled.php /vendor composer.phar .env.*.php .env.php .DS_Store Thumbs.db /.idea |
Continue reading Deploy your Laravel 4 application on Heroku