Guillermo Rauch
8 years ago
1 changed files with 10 additions and 31 deletions
@ -1,44 +1,23 @@ |
|||||
# 𝚫 now |
# △ now |
||||
|
|
||||
Realtime global deployments for any kind of application. |
Realtime global deployments served over HTTP/2. |
||||
|
|
||||
## How it works |
## How to install |
||||
|
|
||||
In any directory with a `package.json`, run: |
|
||||
|
|
||||
```bash |
```bash |
||||
$ now |
npm install -g now |
||||
``` |
``` |
||||
|
|
||||
Every time you run it, you get a new URL (unless nothing's changed). |
## How to use |
||||
|
|
||||
### Conventions |
|
||||
|
|
||||
1. `package.json` must contain a `start` task inside `scripts`. |
In any directory with a `package.json` or `Dockerfile`, run: |
||||
If a `now` script is defined, that's used instead. |
|
||||
2. Only files that would be included in `npm publish` are synchronized. |
|
||||
`package.json` `files` field, `.npmignore` and `.gitignore` are supported. |
|
||||
3. If a build step is needed, specify a `build` task in `scripts`. |
|
||||
If `now-build` is defined, that's used instead. |
|
||||
|
|
||||
## Installing |
|
||||
|
|
||||
```bash |
```bash |
||||
$ npm install -g now |
now |
||||
> Enter your email: rauchg@gmail.com. |
|
||||
> We sent an email. Click to log in. |
|
||||
``` |
``` |
||||
|
|
||||
## Features |
For more examples, usage instructions and other commands run: |
||||
|
|
||||
- **Slim**. No reliance on Git. |
|
||||
- **Fast**. Blazing fast sync with deduping. |
|
||||
- **Standard**. Respects npm and Node.JS conventions. |
|
||||
- **Easy**. No need to specify ports, `Dockerfile` or config. |
|
||||
|
|
||||
## Options |
```bash |
||||
|
now help |
||||
``` |
|
||||
-d Debug mode. Lists all files to be uploaded. |
|
||||
-f Force. Creates a new URL even if nothing has changed. |
|
||||
``` |
``` |
||||
|
Loading…
Reference in new issue