Skip to content

Instantly share code, notes, and snippets.

@richardtorres314
Forked from codepainkiller/deploy_l5_heroku
Last active August 29, 2015 14:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richardtorres314/181be25d2d4d033bc9cb to your computer and use it in GitHub Desktop.
Save richardtorres314/181be25d2d4d033bc9cb to your computer and use it in GitHub Desktop.
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 buildpack: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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment