Static Assets

FlashDrive is made to build, host and scale apps from a Git Repository or a Docker Image.

While it’s not it’s primary usage to host static websites or assets you can leverage the high availability of the FlashDrive infrastructure to host static website using the PHP buildpack.

This Github repository can be forked or deployed on FlashDrive and it’s a good place to start.

What we do here is :

  • Create a PHP app on FlashDrive
  • Create a composer.json with only “{}” inside to activate the PHP buildpack
  • Assets and HTML files will be served by the FlashDrive app, index.html will be used as the index file

Was this helpful?

0 / 0