25.06.2018 Views

Full-Stack Vue.js 2 and Laravel 5

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Configuring a web server<br />

Web server configuration for Heroku is done via a special file called Procfile (no<br />

file extension) that lives in the root of your project directory.<br />

Let's now create that file: $ touch Procfile<br />

Each line of the Procfile is a declaration that tells Heroku how to run various<br />

pieces of your app. Let's create a Procfile for <strong>Vue</strong>bnb now <strong>and</strong> add this single<br />

declaration.<br />

Procfile: web: vendor/bin/heroku-php-apache2 public/<br />

The part to the left of the colon is the process type. The web process type defines<br />

where HTTP requests are sent in the app. The part to the right is the comm<strong>and</strong> to<br />

run or start that process. We will route requests to an Apache server that points<br />

to the public directory of our app.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!