heroku-config

授权协议 Readme
开发语言 JavaScript
所属分类 Web应用开发、 常用JavaScript包
软件类型 开源软件
地区 不详
投 递 者 秦经义
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

heroku-config

Push and pull your Heroku configs to your local environment.

Heavily inspired by ddollar's version, but using the new Heroku cli.

⚠️ Disclaimer ⚠️

Running this code has the potential to delete your configurations if misused.

Specifically, the -o flag will overwrite values at the destination. Only use that if the source has more up to date info and you're feeling brave. Otherwise, this merges configs and is fairly safe. Just thought you should know.

Also, the -c flag will delete values that didn't exist locally when you pushed. Only use it if you know that.

Usage

You can install the package by running

% heroku plugins:install heroku-config

This package includes two commands:

  • heroku config:pull: Writes the contents of heroku config into a local file
  • heroku config:push: Writes the contents of a local file into heroku config

Run heroku help config:pull and heroku help config:push to see a full list of flags.

File Format

There's a lot of flexibility when it comes to how you can format your file. Key capitalization can go either way and there can be spacing around the = on one, both, or neither side. There can also be a leading export if you want to use the same file to populate your local environment. Since Heroku runs on linux, variable names must conform to those valid in unix. If you want to use unsupported characters in your var names, run commands with the -e flag. There's also support both unix and windows-style newlines (though only one type per file).

Multiline variables are fine as long as they're surrounded by "

All of the following are valid lines:

#comment
NODE_ENV= test
source =local
job = programming

DB_STRING=mongo://blah@thing.mongo.thing.com:4567
export THING=3
multiline="this can have
as many lines
# comments are still ignored
as it wants"

The following are all invalid lines:

# comment with leading space
 bad_key=nono
key with-dash=andspace
multiline='bad because
it uses
single quotes'

Development

You'll need Node version >= 6.0. If you want to match exactly, check out the heroku cli's node version here. I like nvm for managing multiple node versions.

After cloning, follow these instructions to run locally! I welcome pull requests with fixes or new features.

  • http://devcenter.heroku.com/articles/quickstart这里的步骤要仔细读读。 [b]git相关[/b] 报错:fatal: 'heroku' does not appear to be a git repository需要: git remote add diancai git@heroku.com:diancai.git解决 git push dianca

  • gem install heroku heroku keys:add(没有的话) heroku create --stack cedar git push heroku master heroku run rake db:migrate 常用命令:heroku open                     heroku logs                     heroku run c

  • 1、start a free Heroku account Java installed Maven 3 installed 2、setup      In this step you will install the Heroku Toolbelt. This provides you access to the Heroku Command Line utility, as well as g

  • 5.7 在 Heroku 上使用 PostgreSQL - 第五章、用户注册 5.7 在 Heroku 上使用 PostgreSQL 5.7 在 Heroku 上使用 PostgreSQL Heroku 为 Laravel 应用提供了数据存储的功能,我们可以在 Heroku 上使用 MySQL 或 PostgreSQL 来进行数据存储。由于 Heroku 对 PostgreSQL 的支持比 MyS

  • 今天先记一下heroku的plugin里的custom domain names,也就是将自己的域名指向在heroku创建的app。   关键是两点: 1. 设置根域名的A记录 Root domains must use A records. Only your root domain (mydomain.com) may use A records. To setup your root dom

  • 1. 安装 进入https://devcenter.heroku.com/articles/heroku-cli#windows,选择对应版本安装 安装后使用heroku -v可检查版本号 2. 登陆 heroku login 3. 创建网址 heroku create 4. push git到heroku 复制刚刚生成的.git链接 git remote add heroku 链接 git pu

  • 目标系统用户useraccount1. useraccount2 k8s中有 4个ns   ns1, ns2, ns3 ns4 useraccount1 只能get ns1 ns3 useraccount2 只能get ns2 ns4   创建CA证书和密钥 创建useraccount1.key和useraccount2.key #进入目录/etc/kubernetes/pki [root@ma

  • 查看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, --

  •  pip安装django-heroku时出错信息如下: Collecting django-heroku==0.3.1 Downloading https://mirrors.163.com/pypi/packages/59/af/5475a876c5addd5a3494db47d9f7be93cc14d3a7603542b194572791b6c6/django_heroku-0.3.1-p

 相关资料
  • Heroku 是一个商业的Rails主机托管解决方案,提供的是“无需准备的部署服务”,因为操作和扩展都是自动的,无需任何系统管理。虽然相较于其它服务商而言Heroku目前的价格较高。 为适应不断变化的需求,Heroku可以在网格中其它地方启动新的完全独立的dyno,或者关闭那些闲置的dyno。Dyno的启动时间还不到2秒,这足以证明Heroku的平台空前的强大。为了满足更高需求而启动新的dyno实

  • Heroku WP 是一个用来在 Heroku 上安装和运行 WordPress 的模板,侧重于安全和速度,使用官方 Heroku 堆栈。 基于如下技术构建: nginx - For serving web content. HHVM - A virtual machine designed to serve Hack and PHP. MySQL - Provided by the ClearD

  • 借助Letsencrypt-HeroKu ,可以在短短几分钟增强HeroKu应用安全级别。 功能特点: 可生成一个私钥。 支持域名验证。 可生成一个CSR。 可生成LetsEncrypt证书。 可使指定的Heroku应用拥有HTTP SNI特征。 支持证书的添加和更新。 扩展了解:https://substrakt.com/heroku-ssl-me-weve-come-a-long-way/

  • Heroku-Docker 是迁移到 Docker 镜像上的 Heroku 项目。对那些想方设法将现有的Heroku项目迁移到Docker,又无须从头开始重新构建的人来说,这是个不二的选择。这个简单的小项目拿来现有的Heroku应用程序后,可以从命令行将其转换成Docker镜像,执行整个操作只需要几个命令就行。 示例代码: $ heroku docker:build -a myappSending

  • 我刚刚在赫罗库改用独角兽。我也要切换到resque从delayed_job并使用http://bugsplat.info/2011-11-27-concurrency-on-heroku-cedar.html描述的设置 我不明白的是如何配置/unicorn.rb: 翻译成: “这实际上会在每个web dyno中产生六个进程:1个unicorn主进程、3个unicorn web工作进程、1个resq

  • Heroku Buildpack: Python This is the official Heroku buildpack for Python apps. Recommended web frameworks include Django and Flask, among others. The recommended webserver is Gunicorn. There are no r