Test Server Error
When trying to run ember test --server I always get an error similar to below, and the build process never completes. Running test without the server flag works fine.
Error: ENOTDIR: not a directory, open '/myapp/tmp/broccoli_persistent_filterbabel__babel_ember_data-input_base_path-O69lbNX1.tmp/ember-data/serializers/json.js'
That sort of looks like a project-specific issue. Can you replicate that on a fresh build of a new ember project (ember init)? I'm still without power due to the hurricane. So, if you find that it is something that applies generally to all projects using the image, let me know. Also, let me know if you find a solution. :-)
To add a bit more colour, I'm using Docker for Windows with a shared mount. If I locally install ember-cli (within Windows Ubuntu) and run ember test --server then this works - so it seems to be something to do with the mounted volume and/or docker image.
And I get the same error on a fresh build. Here's my docker-compose.yml file
version: "3"
services:
app:
image: danlynn/ember-cli:2.15.1
volumes:
- .:/myapp
command: ['ember','server','--watcher','polling']
Sounds like a permissioning issue. Check into the details of volume mount ownership when using docker and windows. I’m guessing that it is having problems creating directories or files in tmp. Alternatively, you might try volumizing that tmp dir as a regular docker internal volume that simply stays in the docker host VM.
On Sep 13, 2017, at 8:04 PM, Evan Davey [email protected] wrote:
To add a bit more colour, I'm using Docker for Windows with a shared mount. If I locally install ember-cli (within Windows Ubuntu) and run ember test --server then this works - so it seems to be something to do with the mounted volume and/or docker image.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/danlynn/ember-cli/issues/9#issuecomment-329331129, or mute the thread https://github.com/notifications/unsubscribe-auth/AAA6YrBgKzfvTyMtzcMC8A_TkJRbD_ntks5siG2MgaJpZM4PVZUR.