Deploy Large Media site using CLI or API


We have a NLM-enabled site that we’d like to manually deploy using the CLI or API. Here’s the rub: we’d like to upload the LFS pointer files instead of the actual files. This seems to be how automatic builds are done (GIT_LFS_SKIP_SMUDGE=1). Unlike the auto builds, however, when we manually deploy pointer files, they are served as-is instead of redirecting to the stored LFS files. There seems to be an additional step the auto builds are doing that we’re missing. Is there a flag or parameter we can use to tell the deploy to perform this redirect?

Appreciate your help!

Hi, @gsjen123. If you want to use manual deploys, you will not be able to use Large Media in those deploys.

Large Media only works if you use the Git repo backed “build and deploy” process. This is because part of what the Large Media service is is a Git LFS service. If you are not using Git to deploy then you cannot use Large Media.

If there are other questions about this, please let us know.