O'Reilly logo

Hands-On Full Stack Web Development with Aurelia by Erikson Haziz Murrugarra Sifuentes, Diego Jose Arguelles Rojas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required