码迷,mamicode.com
首页 > 移动开发 > 详细

[NodeJS] Deploy a Node Application with the Now CLI

时间:2016-09-24 17:32:49      阅读:177      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!