Last active
August 17, 2018 11:45
-
-
Save markmur/d1ae2c56a76b5b836b3e8b82b5be895b to your computer and use it in GitHub Desktop.
Now: deploy, alias latest and remove old deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "app-name", | |
"alias": "app-name.now.sh" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# THIS COMMAND SHOULD ONLY BE USED IF YOU DON'T CARE ABOUT KEEPING OLD DEPLOYMENTS | |
# | |
# Now: deploy, alias latest and remove old deployments | |
# | |
# "--safe" keeps the latest deployment and removes the rest, | |
# "-y" is shorthand for "--yes" which skips the confirmation dialog | |
now --public && now alias && now rm YOUR_APP_NAME --safe -y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": { | |
"deploy": "now --public && now alias && now rm YOUR_APP_NAME --safe -y" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment