Link Search Menu Expand Document

Bip LFS

Bip LFS is a large file storage service for Bip websites. Using LFS, you can sync your website’s media and large assets to the cloud, and the Bip CLI will only upload new files or files which have changed.

LFS vs standard website storage

When you deploy your website with bip deploy, the entire contents of the directory are zipped and uploaded to Bip, which allows for fast deployment with zero downtime.

This isn’t ideal when your website has lots of media assets like images and videos, as these have to be uploaded each time you deploy a change to your website.

This is where Bip LFS comes in. With LFS, you put all your media assets in a special directory which isn’t zipped when you deploy. Instead, the files in the directory are synced rather than uploaded all at once, so only files which have changed are uploaded.

Get started

To get started with Bip LFS, create a new folder at the base of your project called _lfs. Include any files you want to upload in the directory, and then run bip deploy.

Bip CLI will automatically detect your LFS directory, and sync the files with the cloud. Following the sync, Bip CLI will continue to deploy the rest of your website files outside of the _lfs directory as normal.

Accessing files in LFS on your website

Accessing LFS files from your website is easy. Simply include them relative to the root of your domain.

For example:

<img src="/_lfs/myimage.jpg">

© 2020 Bip.sh, Ltd.