June 2018
Intermediate to advanced
348 pages
8h 19m
English
Heroku, just like other cloud providers, does not offer any way to deploy static HTML files, so we will need to deploy our application using another strategy. We will create a simple PHP file that will serve as the entry point that will have one line of code to import our index.html file:

Now, in the dist folder, go ahead and create the index.php file with the following content:
<? include_once("index.html");
We use the invoke_once function to import the index.html page as the main page.
Read now
Unlock full access