首页 > 移动平台 > 详细

[NodeJS] Deploy a Node Application with the Now CLI

时间:2016-09-24 17:31:28      阅读:168      评论:0      收藏:0      [点我收藏+]

Now offers a friction-free way to deploy node applications right from the terminal. In this lesson, we‘ll learn how to use the now CLI to deploy a node application, including the deployment of environment variables. We‘ll also look at how now retains each version of your application, how to see the running code right in the browser and how to remove a deployment when you no longer want that version.

 

npm i -g now // install

now // deploy

now -e GREETING="sometoken" // deploy with token

now ls // list all the snapshots

now rm <id> // remove the snapshot

 

You can also broswer the source code of you deployed app by adding

/_src

to the end of url:

https://now-demo-ziknblodzb.now.sh/_src

 

[NodeJS] Deploy a Node Application with the Now CLI

原文:http://www.cnblogs.com/Answer1215/p/5903472.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!