Last active
April 21, 2018 08:45
-
-
Save codepainkiller/6a802f274681a7e543d6 to your computer and use it in GitHub Desktop.
Laravel 5 - Deploy to Heroku
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
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
Thank you sir. :)