Project name should be taken from package.json or now.json in priority
floo51 opened this issue · 0 comments
floo51 commented
Describe the bug
When deploying, the project name is taken from the directory name.
Now takes the project name from:
- now.json
- package.json
- directory name
To Reproduce
- Create a new meteor app in a folder named "bonjour".
- Add to package.json:
"now":{
"name": "hello",
}
- Deploy
- App will deployed to bonjour-xyz.now.sh
Expected behavior
App should be deployed to hello-xyz.now.sh
Additional context
It's especially annoying when willing to do now alias
since that takes the name in the package.json
, which is not the app name meteor-now
used.
Probably around here:
meteor-now/src/api/constants.js
Line 12 in 2e3e90a