pier
1
I’m trying to use statics with a Node app.
I thought the buildpack would copy the Node app into an /app
folder but this doesn’t work and I’m getting 404 errors:
[[statics]]
guest_path = "/app/src/server/static"
url_prefix = "/"
AFAIK Fly is using Heroku buildpacks and from all the references I’ve seen on Github, it seems like the work dir should indeed be /app
.
Edit:
Indeed the work dir is /app
but the statics just don’t work.
Edit:
I’ve tried using guest_path = "./app/src/server/static"
but it didn’t work either.
pier
2
I ended up doing a console.log() and the workdir is /workspace
.
Hopefully this will save others some time.