Closed mrispoli24 closed 7 years ago
I noticed something similar last week but didn't have time to dig in. I don't think the issue is related to this buildpack though since I get the same error locally if I run ember serve --environment production
. Can you confirm you see the same thing?
@Dhaulagiri yep I see the same thing serving production locally:
Error: ENOENT: no such file or directory, open '/Users/M/code/cause_of_a_kind/tmp/srihash_assets-output_path-NqgWyF3s.tmp/assets/vendor.js'
at Object.fs.openSync (fs.js:558:18)
at Object.fs.readFileSync (fs.js:468:33)
at /Users/M/code/cause_of_a_kind/node_modules/fastboot/src/ember-app.js:141:27
at Array.forEach (native)
at EmberApp.loadAppFiles (/Users/M/code/cause_of_a_kind/node_modules/fastboot/src/ember-app.js:139:21)
at EmberApp.retrieveSandboxedApp (/Users/M/code/cause_of_a_kind/node_modules/fastboot/src/ember-app.js:187:10)
at new EmberApp (/Users/M/code/cause_of_a_kind/node_modules/fastboot/src/ember-app.js:50:21)
at FastBoot._buildEmberApp (/Users/M/code/cause_of_a_kind/node_modules/fastboot/src/index.js:114:17)
at new FastBoot (/Users/M/code/cause_of_a_kind/node_modules/fastboot/src/index.js:52:10)
at app.use (/Users/M/code/cause_of_a_kind/node_modules/ember-cli-fastboot/index.js:233:29)
One thing I noticed is that I didn't install yarn for my app, I didn't think that would be necessary for this though.
I'm going to close this since this doesn't appear to be a buildpack issue, but if you learn otherwise feel free to re-open.
I haven't been keeping up with fastboot lately so I'm not sure where this error is coming from, but we may want to raise an issue over there to see what might be causing this.
Thanks @Dhaulagiri for pointing me in the right direction. I'll have some time to dig into it more later too to see if I can find the issue.
Hi, it looks like you've run into this https://github.com/ember-fastboot/ember-cli-fastboot/issues/424.
Not sure why but you can hopefully make it work by updating ember-cli-build.js
like this:
fingerprint: {
generateAssetMap: EmberApp.env() === 'production'
}
Hello I built an ember app locally with fastboot and then tried to deploy to Heroku using the documentation.
The build succeeds but the app will not serve:
I'm not sure what is going on there doesn't seem to be much useful in the logs on the build side. There are s few warnings on the build but I don't know if those have much do do with it.
In my logs I see the following:
I did make a change so that my node version is the same one as I am using locally in the package.json but this doesn't seem to have helped. Would just creating a vendor.js file be the answer here?