Skip to content

[ Incomplete documentation ] Document the command line invocation of static file caches #1061

Open
@lexidor

Description

@lexidor

Please complete the information below:

Where is the problem?

The section explaining how to make a static file cache.

What is the problem?

I wish to create a static file cache. I want to limit what files end up in this cache. I create my code repo as usual:
hhvm --hphp -t hhbc --output-dir $current_build_dir --module src --module vendor
I then invoke hhvm again to create a file cache:
hhvm --hphp -t filecache --file-cache $current_build_dir/file.cache --cmodule .well-known/
I open the file.cache file and see (besides a lot of binary <?> invalid utf8) the contents of the vendor/hhvm/hsl/CONTRIBUTING.md file, some hh_autoload.json contents, and other files from my directory structure. I do not wish to bundle these files for production. It seems hhvm ignored the --cmodule argument and just grabs everything from pwd downwards with an extension of json, md, and others it recognizes.

I would like to know how to use this powerful tool for simplifying website deployment. An example of a command line invocation which includes a couple directories such as .well-known/, assets/ and a file from the top level directory, such as 404.html would help a lot.

Extra, the mode target filecache is not mentioned (only the hhbc target is).

Thanks in advance for the effort.


Please don't change anything below this point.


  • Build ID: HHVM=HHVM-4.117.0:HSL=v4.108.1:2021-07-27T18:09:02+0000:1fa47f258c6b68f8ec01899aa82fd6ffa0957109
  • Page requested: /hhvm/advanced-usage/repo-authoritative
  • Page requested at: Sun, 01 Aug 2021 17:15:10 +0000
  • Controller: GuidePageController

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions