MageWork

Back to home

Static Site Generator

If the site is purely static, then you can generate a static version of it and serve the files directly.

php static.php {package} {baseUrl}

For example, if your application contains a package named acme and you want to serve it at the URL https://www.example.com:

php static.php acme https://www.example.com

The site is generated in the static/{package} folder, then you can configure the web server to use this folder as root directory.