-
Notifications
You must be signed in to change notification settings - Fork 48
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
JS_RUNTIME_TARGET_BUNDLE not set during heroku ps:exec
#18
Comments
What does What does Which git branch are you deploying? And how are you deploying it? ( |
Hey @mars , thanks for the quick reply to my issue, especially on a Sunday! I will point out that this bug does not appear to be related to deployment. There was an issue with how I was deploying my Rather, I think this bug is solely related to when I SSH into a Dyno via Regardless, thank you for the help. |
The |
heroku ps:exec
hey @ecbrodie , I am getting the same error , could you please tell me what did you fix in your index.html file |
@Aakratigoel I think it depends where you are getting the error. If it is during If you are getting this error during app deployment, then we got a different problem, which I think should be a new issue. I can't remember exactly what I did to fix |
@mars @ecbrodie I am also getting same error on these are all the errors. |
@VIPIN-creator |
@mars thank you for the response. But Actually I don't know my custom bundle path. above is the files in my build folder . please help me find out |
@VIPIN-creator your file listing screenshot looks fine to me, using the standard CRA bundle path. I’m not sure what’s wrong for your app. It seems like the files are missing from the Heroku dyno. Did you follow the instructions in the README to set this up? Everything is documented there. |
I am trying to deploy a React app not using CRA to Heroku using the create-react-app-buildpack. I am running into a bug that I believe is related to this inner buildpack.
Since I'm not using CRA, I have set a custom path (
"dist/"
) for mybundle.js
output. Thus, I am setting a custom path forJS_RUNTIME_TARGET_BUNDLE
:My app has an Nginx 404 page show up on deploy. So, I SSH into the Dyno to check out the issue:
My natural conclusion is that https://github.com/mars/create-react-app-inner-buildpack/blob/master/.profile.d/inject_react_app_env.sh#L8 is not working properly. I have triple-confirmed that
JS_RUNTIME_TARGET_BUNDLE
is indeed set on my app and I have forced multiple redeploys. I also have the root set in mystatic.json
file. Not sure what else I can do here to set the custom path to my root.Thank you for the help.
The text was updated successfully, but these errors were encountered: