[NodeJS] Use Now alias for custom sub-domains

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[NodeJS] Use Now alias for custom sub-domains相关的知识,希望对你有一定的参考价值。

Now is a great way to deploy your node application, but the generated URLs aren‘t memorable or easily remembered. With Now‘s alias command, you can fix that. In this video lesson we‘ll cover how to add an alias to a deployment, giving you a custom *.now.sh subdomain, how to create an alias using your own custom domain name, how to list your aliases and finally how to remove an alias if you no longer want it.

 

// List Deployments
now ls

// Create an alias
now alias <DEPLOYMENT ID> <ALIAS VALUE>

// List Aliases
now alias ls

// Remove an Alias
now alias rm <ALIAS ID>

 

以上是关于[NodeJS] Use Now alias for custom sub-domains的主要内容,如果未能解决你的问题,请参考以下文章

NodeJS Sequelize:与别名 [alias] 的关联在 [model] 上不存在

nodejs 命令行获取入参

nodejs:app.use处理post请求

[NodeJS] Deploy a Node Application with the Now CLI

NodeJs传递参数遇到的错误

nodejs - passport.use 回调返回 dataValues 和 _previousDataValues 而不是普通对象