Preparing the application

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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.188.64.66