Jarmo Isotalo
1fb629da63
Fix regression where setting a single env variable with `-e` failed ( #141 )
8 years ago
Leo Lamprecht
026e2cdf7b
Bumped dependencies
8 years ago
Eric Ferraiuolo
ec76f6b706
Add `now.env` in package.json as env source ( #119 )
This adds package.json as new source for environment variables, which
are merged with `-e` CLI arguments (CLI args take precedence).
With the ability to specify environment variables in package.json,
developers don't need to remember which `-e` arguments to add, and
can simply run `now`.
```json
"now": {
"env": {
"foo": "bar"
}
}
```
The above is the same as running:
```
now -e foo=bar
```
Fixes #116
8 years ago
Olli Vanhoja
129372d161
Certs improvements ( #114 )
* Exit cleanly if a cert entry is not found with getCertIdCn()
* Support creating a new cert entry with user-provide certificate files
8 years ago
Olli Vanhoja
6d83be5f25
Now deploy env fixes ( #105 )
* Fix key and value checks
- key can't be empty string nor undefined or null
- value is always undefined if it's not set
* Fix crash if env key and value are missing when using -e
8 years ago
Jarmo Isotalo
d091240115
If `package.json` or `Dockerfile` is present, assume it's static ( #100 )
deployment
8 years ago
Leo Lamprecht
c5626178ed
Move files into content dir if static
8 years ago
Leo Lamprecht
243d068491
Detect static projects
8 years ago
Leo Lamprecht
fb89e1e2bb
Added enforcable deployment types
8 years ago
Leo Lamprecht
589d2fc72c
Removed static command
8 years ago
Remy Sharp
ce32dce2aa
Support `now alias` reading `config.alias` ( #93 )
* feat: support `now alias` reading config.alias
Reads the last deployment and will automatically alias to the package.json's config.alias property
* chore: corrected typo on `console.time`
* fix: use `root/now.alias` over `root/config.alias`
8 years ago
Olli Vanhoja
530a9fb357
Add a flag for skipping DNS verification ( #94 )
Some registrars requires that the DNS records are already setup
before delegating the domain to a nameserver.
8 years ago
Leo Lamprecht
881f382a43
Remove unnecessary statement
8 years ago
Leo Lamprecht
8b56a13221
Deploy cwd if no path defined
8 years ago
Leo Lamprecht
e32bd818e4
Make binaries comply to linting rules
8 years ago
Leo Lamprecht
c67c051699
The binaries are made of JavaScript
8 years ago
Leo Lamprecht
3979d8472a
Fixed even more XO issues
8 years ago
Leo Lamprecht
076817309c
Group imports by kind
8 years ago
Leo Lamprecht
fb28ec4ba5
Empty line after binary indicator
8 years ago
Leo Lamprecht
3c7898b760
New line for each flag
8 years ago
Leo Lamprecht
f677786035
Added static sub-command to usage information
8 years ago
Leo Lamprecht
eba64c615e
It's now called 'static', not 'serve'
8 years ago
Leo Lamprecht
cf39f7f032
Added core of static sub-command
8 years ago
Leo Lamprecht
79389c1a60
Put each command into its own line
8 years ago
Leo Lamprecht
66711afaeb
Capitalize command descriptions
8 years ago
Nathan Rajlich
76e3afe88e
remove: delete deployment by URL ( #172 )
So this now works:
```
now rm https://ffitest-hcznbannyc.now.sh
```
Fixes #87 .
8 years ago
Nathan Rajlich
c2fa7e8565
document `secrets` and `certs` commands ( #168 )
* document `secrets` command in --help
* document `certs` command in --help
8 years ago
Nathan Rajlich
3f78172428
only consider 1 result for the "single" verbage ( #170 )
English is hard… 0 uses the "multiple" verbage. We want:
0 domains
1 domain
2 domains
3 domains
…etc.
8 years ago
Nathan Rajlich
139a44918e
alias: better "invalid arguments" error messages ( #169 )
8 years ago
Nathan Rajlich
aa66f07cd5
deploy: document --npm and --docker
8 years ago
Jarmo Isotalo
65a7ee7158
Allow env value to contain '='
8 years ago
Olli Vanhoja
40000d7f3c
now-certs: Fix typo on formatExpirationDate()
8 years ago
Olli Vanhoja
b98bc74f0b
Don't print the list if there is no entries
8 years ago
Olli Vanhoja
87c4b1fc16
Add header to alias and secrets command
8 years ago
Olli Vanhoja
b6f135419d
Proper strlen function for strings containing ANSI escape codes
8 years ago
Olli Vanhoja
c75b9adcc0
Formatting for cert expiration time
8 years ago
Olli Vanhoja
4338e776e3
now-certs: Show expiration date for certs
8 years ago
Olli Vanhoja
0355c57e6d
domains: chalk.dim() for the headers
8 years ago
Olli Vanhoja
d743f483cd
Show domain entry type in `now domain ls`
8 years ago
Olli Vanhoja
4db4353d5d
now certs management
* Move cert handling to index.js
* Add 'now certs' commands for certificate management
8 years ago
Olli Vanhoja
db10a26c84
Fix table alignments in listings
8 years ago
Matheus Fernandes
4debd4b3e7
Show lowercased secret name after `now secret add` ( #57 )
8 years ago
Vitaly Domnikov
cc157180a8
Fix `now alias ls` inconsistency
Fix `now alias ls` inconsistency.
8 years ago
Kevin Donahue
deea02a1bf
Fix `now ls` output in case of 0 deployments
8 years ago
Nick Payne
9c9682354c
Import login method to now-secrets
8 years ago
Guillermo Rauch
dc5a796677
improve error message for not finding a manifest file
8 years ago
Nathan Rajlich
eec0e8ebd9
now rm: remove by app name ( #150 )
* remove: implement remove by app name
Now you can do `now rm app-name` and remove all
deployments under that app name.
Syntax parallels `now ls app-name`.
* remove: only confirm deletion once
Also now supports arbitrary number of IDs/names to remove,
so that i.e. `xargs` could be used:
```
$ echo TYA4oUPKMloPXpWe3EDw5Dhs LtbfMjHFm92GnoSOVFHSps1E | xargs now rm
```
8 years ago
Igor Klopov
9414d8b078
Switch from `enclose` to `pkg` ( #127 )
* removed `enclose`, added `pkg`
* pinned `pkg`version
* bump pkg to beta.4
8 years ago
Guillermo Rauch
fc8e4f8e20
make indendation consistent
8 years ago
Guillermo Rauch
c4248cebaa
add totals to listings and fix plurals
8 years ago