-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker/Heroku deploy - "spawnSync /tmp/build_/node_modules/bs-platform/bin/bsb.exe ENOENT" #2336
Comments
Oh - I've also tried just running the |
@bkonkle can you try these two commands see the output
|
Thanks for the quick response! I updated my "heroku-postbuild" hook in the package.json file to this:
Here's the full log output: Click to expand
|
I'm still having this issue with Docker as well. Here's the my current dockerfile: https://github.com/ecliptic/reason-graphql-docker/blob/master/Dockerfile Here are the results:
Here's the full output: Click to expand
|
I'm getting further in my troubleshooting. What I think is happening is that the installation of |
I imagine the trouble on Heroku is similar, and I'll need to add some buildpacks to solve. |
Okay, for anyone who finds this issue later, here's a workaround: Build your container locally. Do not run # Selective node modules ignore
node_modules/*
!node_modules/bs-express/lib/js/
!node_modules/bs-apollo-server-express/lib/js/ Then you can push your image to a container registry on Heroku, AWS, Google, etc - or to a private Docker Hub account. For example, in Heroku you would use the This is fine pre-release, but once an application is out in production I'll want to start using Heroku review apps, and eventually I'll be moving everything out to Kubernetes. For both of those purposes, I need to be able to build remotely based on just the git tree. I'd definitely appreciate any help you or the community could provide there! Thank you so much for sharing such an awesome project! |
More debug info here, from a built Docker container:
|
Seems postinstall is not triggered, bsc.exe is not found either |
do you have any luck? |
I can confirm the (symlinked?) |
@bobzhang I'm getting the same error on Ubuntu 18, why is trying to use bsc.exe ? I'm on linux not windows. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi! I'm having difficulty deploying a Reason/BS app built on
bs-express
to Heroku. I've created an example app that demonstrates the problem with a "Deploy to Heroku" button.If you try out the build, you should see this output:
It looks like it's having trouble finding
bsb
in the buildpack environment, but I've tried numerous ways of making surebs-platform
is installed both locally and globally in the build environment.Surprisingly, I've tried this same build in a Docker environment using the node-8 alpine image, with the same ENOENT result. I also tried with a Docker image tailored to BuckleScript, with an entirely different error that doesn't seem to be related.
Any help tracking this down would be much appreciated! I'm hoping to have a deployment up and running for a client within a couple weeks.
Thanks!
The text was updated successfully, but these errors were encountered: