Browse Source

check for Dockerfile when now.json is present (#486)

Consider a tree like:

```
.
├── Dockerfile
└── now.json

0 directories, 2 files
```

Before this patch, this deployment would be considered a "static"
deployment, which is incorrect. Now it is properly detected
as a "docker" deployment type.
master
Nathan Rajlich 8 years ago
committed by Guillermo Rauch
parent
commit
554170e3b4
  1. 4
      lib/read-metadata.js

4
lib/read-metadata.js

@ -55,8 +55,8 @@ async function readMetaData(
if (nowConfig.type) {
deploymentType = nowConfig.type
} else if (
nowConfig.type === undefined &&
!await exists(resolvePath(path, 'package.json'))
!await exists(resolvePath(path, 'package.json')) &&
!await exists(resolvePath(path, 'Dockerfile'))
) {
deploymentType = 'static'
}

Loading…
Cancel
Save