[NodeJS] Deploy a Node Application with the Now CLI

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[NodeJS] Deploy a Node Application with the Now CLI相关的知识,希望对你有一定的参考价值。

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的主要内容,如果未能解决你的问题,请参考以下文章

使用ceph-deploy进行ceph安装

nodejs linux 环境变量配置

[Now] Deploy a Node project with Zeit’s Now

Bitbucket管道,在NodeJS脚本中使用ENV VARS部署到S3 Deploy

nginx+pm2+nodejs部署

安装node和pm2