Commit Graph

6 Commits

Author SHA1 Message Date
Steven
eb8db25845 [cli] Remove v1 messages and docs (#5183)
We removed v1 support in [20.0.0](https://github.com/vercel/vercel/releases/tag/vercel%4020.0.0) so this PR removes the unused documentation, warning messages, etc.
2020-09-11 22:46:32 +00:00
Steven
56c8af51b2 [all] Rename GitHub repo to vercel/vercel (#4506)
We renamed the GitHub repository from `zeit/now` to `vercel/vercel` so this PR updates all references to the repo URL.

There were also a few remaining references to Now CLI that have been updated to Vercel CLI.
2020-05-28 12:06:42 -04:00
Steven
6b52cfdbc7 [now-cli][now-client] Add support for vercel config files (#4234)
This PR renames the CLI and config files to `vercel`.

https://vercel.com/blog/zeit-is-now-vercel

### Complete
- [x] Help menus and error messages should print cli name from `package.json`
- [x] `now.json` => `vercel.json`
- [x] `.nowignore` => `.vercelignore`
- [x] `~/.now` => `~/.vercel`
- [x] `<project>/.now/project.json` => `<project>/.vercel/project.json`

### TODO
I'm going to do the remaining work in a follow-up PR:
- [ ] `<project>/.now/cache` => `<project>/.vercel/cache` (Runtimes sometimes use this)
- [ ] `NOW_*` special cased environment variables
- [ ] `*.now.sh` special cased url suffix
2020-05-05 14:58:05 -04:00
Matheus Fernandes
2f07212e20 Added new iad1 data center (#1575) 2018-09-11 18:34:59 +02:00
Timothy
e03d036131 Add gru1 (#1545)
* Add gru1

* Add gru to errors

* Hard code sfo,bru scale

* Add --regions argument

* Push with console.log

* Scale to `bru`

* Scale down in bru only
2018-08-25 16:29:22 +01:00
Guillermo Rauch
0e9a21a263 Support for globally distributed deployments (#1205)
* Introduce v3 deployment scaling API

* Less retries on setScale()

* now scale cmd v3

* Deployment id fixes

* bump `ecmaVersion` we lint against, to consider object rest spread

* move EPIPE workaround to the main file

* uniform exiting approach

* clean up list command to avoid globals, be simpler to read

* add ability to supply a custom API version to `now.list()` helper

* upgrade babel toolchain

* introduce `arg`, which will incrementally replace `mri`

* global args accepted by all subcommands

* update lock

* fix `>` to be red when rendering errors

* use new output helpers by @tootallnate

* make object spread work

* bump flow webpack plugin

* lock

* revert to ava 0.25.x

* deprecate `now ls help` since an app could be named `help`

* validate number of arguments

* Fixed integration tests to match downgraded AVA

* Trimmed newline

* WIP

* whitespace fix

* add source map support by @timneutkens

* fix source maps paths

* remove sort-deployments util. it only considers `package.json`

* created -> age for consistency

* remove sorting what wasn't working well

* multiple improvements and simplifications

* improve rendering of urls, fix filtering by app

* only attempt to fetch instances if we have a count > 0

* better check for no deployments

* add instance lists if --all is supplied

* prevent the `.map` file from being included by pkg

* Store artifacts in Circle CI

* adapt INITIALIZING display by suggestion of @tootallnate

* Nothing to return

* now scale: Args parsing and remove ls

* various code improvements, error link for deprecation of `now scale ls`

* improve help

* make error more specific to deployment

* use new error output utilities for `now deploy`

* make some requires conditional

* default command style fix

* add reusable dc validation and normalization utilities

* start doing dc / region validation in scale

* refactor deploy to use reusable dc / region utils

* add slug support for warn util

* add success helper

* improve `scale` command

* add `responseErrorMessage` helper

* add `now.fetch()` helper

* remove console.log

* tweak output

* draft of verification step

* better errors

* implement (customizable) verification timeout

* bump now-host api to v3

* finish verification

* improve verification and sanitization

* improve copy

* fix ctrl+c during scale

* fix max scale in the absense of max

* improved rules saving

* fix listing the context you're running `now list` under

* add context name to list commands from slots

* improve --no-verify

* add 'elapsed' utility to print out the elapsed time nicely

* add per-dc timers

* improve debug helper to save date, improve time helper to log eagerly

* log every request, automatically

* tweak

* general tweaks to `now deploy`

* pass additional now config fields

* refactor `now rm`

* begin `inspect` command

* bump fetch-h2

* nearly complete new inspect command

* add `(dev)` to --version while in development

* fix 404 error if app is not matched

* improve scaling

* pass event types to the events endpoint

* fix file uploads

* fix passing a deployment hostname with trailing `/`

* fetch events only for non-static

* include uid in inspect

* finish up events

* reduce one indent by recommendation of @leo

* fix debugging for `now ls`

* Always return and exit at top-level in now.js

* improved scale message

* more elegant way of exiting, allowing for resource cleanup & faster

* flowify

* fix strange error which happens when orderly cleanup is done

* flow

* flow fix

* invoke now.close()

* improve list indentation

* refactor alias

* exit clean

* improve fallthrough entry in path alias

* make scale exit properly

* fix closing agent for inspection

* add type of deployment to ls

* better error handling of 403

* improve list style

* various algorithmic improvements

* Certificates refactor to consume the new API (#1210)

* Adapt cert command to the new api

* Use the new certs api for cert command

* Console log certs table and point to the right endpoint

* Remove unused certs client file

* Refactor certs commands

* Fix access to args

* Always close client

* Refactor alias (#1216)

* remove unnecessary file

* reads events from /deployment/:id/events endpoint (#1219)

* add polling (#1220)

* add polling

* hack to prevent partial json to be unluckily parsed in _flush

* cleanupAndResolveCalled to prevent running twice

* call onOpen only of going to 'log'. also call from cleanup

* callOnOpenOnce, don't reject on stream error, polling to finish

* fix eraseLines, make cleanup routine reject

* remove build-logger.js

* restored printEvent from deleted build-logger.js

* print locations of instance events

* bump api versions

* Switch now logs to events endpoint (#1223)

* move eraseLines to onRetry. show error in onRetry

* move printEvents to 'sh/util/events.js'

* use printEvents in `now logs` command

* pass printEvent to events.js

* make both follow and non-follow modes work

* remove socket.io

* improve logs command

* clarify team context

* Refactor alias

* Use ellapsed util in stamp

* use v3

* Refactor alias (#1224)

* Refactor alias

* Use ellapsed util in stamp

* Improvements

* Fix unit tests

* Ensure body exists when copying error attrs

* Add hook to close socket and wait message on process exit

* More retries when verifying the DNS records in alias

* Remove nowExit event listener on close

* Add remaning DCs message right away on alias

* Consistent timestamp when creating a deployment + scale dcs

* Ignore flow error

* Remove not needed now.close from alias

* Remove not needed now.close from inspect

* Bugfix: bind context to close socket handler

* Better error handling for scale command

* Now logs limit (#1226)

* restored -n LIMIT cli arg

* show date in format usabe for since and until

* pass direction and limit to endpoint

* implement follow mode after backwards slice

* add query, fix linefeeds, strip term commands

* implement head argument

* better logs default

* logs: fix -o raw mode, fix all mode

* Add verification for deploy

* Run integration tests using random email address

* Fix flow errors

* Fix wrong scale check

* Finish deploy on state READY

* Correct URL parsing

* Bumped Node.js to the latest version

* Output node version

* fix url display

* Returned URLs

* Improve messages in scale

* Clear URLs

* Strip ANSI codes

* Better logging messages for deploy

* Print ls to console instead of stderr

* Add create certificate certificate and ensure verification is done for a domain

* Write success in alias to stdout

* clearURL in stdout for alias test

* Update scale integration test

* Use stdout for scale success message

* Write alias rm response to stdout

* Refactor alias rm to use fetch from now client

* Fix tests
2018-04-03 08:14:41 -07:00