Skip to content

[pull] master from CompuIves:master #39

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

Merged
merged 3 commits into from
Feb 15, 2019
Merged

Conversation

pull[bot]
Copy link

@pull pull bot commented Feb 15, 2019

See Commits and Changes for more details.


Created by pull[bot]

SaraVieira and others added 3 commits February 15, 2019 14:00
* additional parameters to zeit deployment

Right now it's impossible to add additional parameters to zeit deployment like `env` or `region` even though I'd add to the `now.json`. With this change all the supported parameters which are listed on the [zeit documentation](https://zeit.co/docs/api#endpoints/deployments) are supported.

* added oroce to the contributors

Also I fixed the table because the previous contributor `Abdullah` wasn't visible.
If you omit the `files` entry in your `now.json` then the deployment works without any issues but if you customize the `now.files` and you happen to have `package.json` in that list, it will be ignored from the deployment. If the package.json is omitted then zeit won't install the required dependencies.

Example configuration:

now.json
```
{
  "version": 2,
  "files": [
      "index.js",
      "package.json"
   ],
   "builds": [{
      "src": "index.js",
      "use": "@now/node"
    }]
}
```

package.json
```
{
  "dependencies": {
       "express": "4.16.4"
   }
}
```

index.js
```
require('express');
```

The deployment of a sandbox with the configuration above will be successful but when you are trying to open your deployment it'll crash with an error of 500. (`MODULE_NOT_FOUND`)

I found this issue while I was building a Pusher authentication server using zeit for a [sample vue chat app](https://codesandbox.io/s/9z1prn05pr).  I had to define the `now.files` since the sandbox has lots of files (config, static, build, etc) which should be deployed to zeit (and cannot be due to some zeit errors). For now, I moved the server to a different sandbox and deployed from [there](https://codesandbox.io/s/j4v80y7wzw).
@pull pull bot added the ⤵️ pull label Feb 15, 2019
@pull pull bot merged commit af43adc into Devpodio:master Feb 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants