heroku常用命令示例(二)

  1. 查看APP的config信息
    该命令的帮助如下:
C:\Users\Benjamin>heroku help config
display the config vars for an app

USAGE
  $ heroku config

OPTIONS
  -a, --app=app        (required) app to run command against
  -j, --json           output config vars in json format
  -r, --remote=remote  git remote of app to use
  -s, --shell          output config vars in shell format

COMMANDS
  config:edit   interactively edit config vars
  config:get    display a single config value for an app
  config:set    set one or more config vars
  config:unset  unset one or more config vars

没大看懂这个帮助,网上简单搜了下也没找到示例,不过也好摸索。
我的APP的名称为chem2reg,开通了postgreSQL数据库,命令示例如下:

C:\Users\Benjamin>heroku config -a chem2reg
=== chem2reg Config Vars
DATABASE_URL: postgres://whmlxlewfscscw:de83f597964fcsssssssss49e638aab946b6e691679dd310d91@ec2-3-233-7-12.compute-1.amazonaws.com:5432/dfsssssss
  1. reset PostgreSQL数据库
    该命令将清空数据库,示例将清空名为chem2reg的APP之下的数据库,示例如下:
C:\Users\Benjamin>heroku pg:reset -a chem2reg
 !    WARNING: Destructive action
 !    postgresql-polished-14609 will lose all of its data
 !
 !    To proceed, type chem2reg or re-run this command with --confirm chem2reg

运行结果:

> chem2reg
Resetting postgresql-polished-14609... done
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

狮弟

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值