-
Bug
-
Resolution: Done
-
Undefined
-
None
-
None
-
False
-
-
False
-
-
-
OCMUI Core Sprint 256
Adam Drew explains this problem and how to address this in this comment on the CDN re-route ticket for containerized/stage:
Caddy expects that there will be two builds of the app - one preview, and one stable - located in the /opt/app-root/src/dist directory in two subfolders: /opt/app-root/src/dist/stable and /opt/app-root/src/dist/preview. When using the centrally managed build scripts all of this is done automatically. However, because you are providing your own ci.sh you are doing the build yourself and not creating the required disk layout for caddy.
You have a couple of ways to fix this:
- Get rid of ci.sh. The system will fall back to using our provided build scripts
- Extend your ci.sh to provide the expected disk layout. Ensure that your app's built assets end up in dist/preview and dist/stable
- Ship your own Caddyfile to match your own file layout
I recommend option 1 because it is the least invasive, you are removing instead of adding.
Before following these recommendations, it might be worth to first add a definition for stage/stable deployments (on top of the existing stage/beta) at the ocm/ui/deploy.yml config file, and see if the problem still appears.
- causes
-
OCMUI-2069 master build is broken due to failed parsing of yarn command
-
- Closed
-
- is depended on by
-
OCMUI-2069 master build is broken due to failed parsing of yarn command
-
- Closed
-
- split from
-
OCMUI-1568 [containerized-builds] Phase 1: Staging
-
- Closed
-
- mentioned on