Overlapping folders
If you have a mount with the same name as a directory you’ve committed to Git or you create such a directory during the build, you get a message like the following:-
In the
buildhook, move the files to a plain directory (not a mount). -
In the
deployhook, usecpto copy the files into the mount.
Mounted files not publicly accessible
If you’ve set up mounts to handle files like user uploads, you want to make sure the files are accessible. Do so by managing their location. This example defines two mounts, one namedprivate and one upload:
.upsun/config.yaml
uploads accessible, define a location with different rules as in the following example:
.upsun/config.yaml
Mounts starting with a dot ignored
Upsun ignores YAML keys that start with a dot. This causes a mount like.myhiddenfolder to be ignored.
To mount a directory starting with a dot, put a / at the start of its definition:
.upsun/config.yaml