Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/remy/now-realias
now realias will re-alias now deployments
https://github.com/remy/now-realias
Last synced: about 2 months ago
JSON representation
now realias will re-alias now deployments
- Host: GitHub
- URL: https://github.com/remy/now-realias
- Owner: remy
- Created: 2016-09-06T13:59:07.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-16T14:59:50.000Z (about 8 years ago)
- Last Synced: 2024-10-13T11:43:31.232Z (2 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 35
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# now-realias
This is a quick utility I wrote that helps with updating the alias on your [`now`](https://zeit.co/now) deployed projects.
You will need to have manually set an initial alias on your deployment, but after that, if you run this utility in the project directory, it will update the alias from the penultimate deploy to the latest deploy.
Note that the code is extremely simple, so it doesn't do anything more than described above.
## Installation
Preferred installation as a global utility, though obviously you can include as a `devDependency` for continuous integration:
```bash
npm install -g now-realias
```## Usage
From the project directory that you previously ran `now` in, you can run (without any arguments):
```bash
now-realias
```Note that `now-realias` will detect your `NOW_TOKEN` from either your `~/.now.json` or your environment.
That's it.
## License
- [MIT](https://rem.mit-license.org)