So I have a Strapi app that I’d like to deploy on Fly. First, I was trying to use heroku/buildpacks:20 but no luck here. I’m using yarn and heroku buildpack was trying to use npm, even though I do have only one lock file in the project -
yarn.lock. So I decided to try cloudfoundry/cnb:bionic builder. But now I got another problem - this builder installs dependencies correctly, using yarn but it doesn’t seem to build the app. I do have an npm script inside my
build. I saw that you can specify build script using
BP_NODE_RUN_SCRIPTS argument for this buildpack. So I’ve added this to my
fly.toml file. But still no luck, app doesn’t seem to build. Below is my
# fly.toml file generated for exampe-app on 2021-11-16T09:42:48+01:00 app = "example-app" kill_signal = "SIGINT" kill_timeout = 5 processes =  [build] builder = "cloudfoundry/cnb:bionic" [build.args] BP_NODE_RUN_SCRIPTS="build" [env] PORT = "8080" [experimental] allowed_public_ports =  auto_rollback = true [[services]] http_checks =  internal_port = 8080 processes = ["app"] protocol = "tcp" script_checks =  [services.concurrency] hard_limit = 25 soft_limit = 20 type = "connections" [[services.ports]] handlers = ["http"] port = 80 [[services.ports]] handlers = ["tls", "http"] port = 443 [[services.tcp_checks]] grace_period = "1s" interval = "15s" restart_limit = 0 timeout = "2s"