Skip to content

Instantly share code, notes, and snippets.

@codepainkiller
Last active April 21, 2018 08:45
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save codepainkiller/6a802f274681a7e543d6 to your computer and use it in GitHub Desktop.
Save codepainkiller/6a802f274681a7e543d6 to your computer and use it in GitHub Desktop.
Laravel 5 - Deploy to Heroku
Laravel 5 - Deploy to Heroku
Martin Cruz Otiniano
> composer create-project laravel/laravel my_name_app
> cd my_name_app
> git init
> git add -A
> git commit -m "Initial commit"
> heroku login
> heroku create my-name-app-heroku
> heroku buildpacks:set https://github.com/heroku/heroku-buildpack-php
> git push heroku master
> heroku open
> touch Procfile
Edit file and save
web: vendor/bin/heroku-php-apache2 public/
> git add Procfile
> git commit -m "Add file Procfile"
> git push heroku master
> heroku open
Thanks! :D
@ruhi16
Copy link

ruhi16 commented Jul 27, 2017

Thank you sir. :)

@connor11528
Copy link

Does this also create a MySQL database for our application? Also, how do we set our .env files, aren't they checked into .gitignore?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment