[Now] Configure secrets and environment variables with Zeit’s Now
2024-08-31 19:22:21
Often your project will require some secret keys or tokens - for instance, API keys or database authentication information. Learn how to safely and easily deploy secrets to now, and how to expose them as environment variables that your applications can load without making them public to the world.
Deploy with env variable:
now -e GREETING=Hello
now -e GREETING=Hello -e NAME=Egghead
But sometime you might don't know the variable be public. You want to make it secret.
now secret add greeting Hello
now secret add name Egghead
Then you can make a script to deploy:
now -e GREETING=@greeting -e NAME=@name
List your all secrets:
now secrets ls
Remove recret:
now secret remove name
最新文章
- 七个结构模式之代理模式(Proxy Pattern)
- webstorm 10 配置
- Nginx负载均衡配置实例详解(转)
- const 和宏的区别
- java俄罗斯方块游戏代码
- vim粘贴代码格式变乱
- PHP 发布两个不用递归的树形数组构造函数(转)
- zoj 2110
- c 语言 指针 与地址
- 转:PAT练习题概览
- 初识 JShell
- day-4 python多进程编程知识点汇总
- 服务器上部署Struts2的web项目报struts-default.xml:131:154的解决方法
- 原型模式ProtoType
- virsh命令和虚拟机克隆
- Ubuntu14.04+caffe+CPU
- JVM 运行时数据区 (三)
- 使用Base64格式的图片制作ICON
- 一文犀利看懂中美贸易战 z
- Xcode快捷键--灰常实用的快捷键,以后编程快捷多了
热门文章
- BZOJ 1009 GT考试 (AC自动机 + 矩阵乘法加速dp)
- Linux 常用解压缩归档命令
- java 并发原子性与易变性 来自thinking in java4 21.3.3
- Xcode7 的两个小坑
- log4j的总结
- 【天气APP】之桌面时钟witget组件
- 获取input file 选中的图片,并在一个div的img里面赋值src实现预览
- Win8.1部署 .NET Framework 3.5 安装方式
- 【前端统计图】echarts实现属性修改
- Java Web学习总结(11)——Session使用示例教程