To copy a Heroku ENV variable from one application to another, from a bash shell, run
heroku config:set MY_VAR="$(heroku config:get MY_VAR --app old-app-name)" --app new-app-name
To copy a Heroku ENV variable from one application to another, from a bash shell, run
heroku config:set MY_VAR="$(heroku config:get MY_VAR --app old-app-name)" --app new-app-name
There are comments here but you can't see them
Below this ↓
And above this ↑
# These two settings work together to allow you to limit a spec run | |
# to individual examples or groups you care about by tagging them with | |
# `:focus` metadata. When nothing is tagged with `:focus`, all examples | |
# get run. | |
config.filter_run :focus | |
config.run_all_when_everything_filtered = true |
$ ruby -v
$ rvm get stable
Generally, you will add a git remote for your Heroku app during the Heroku app creation process, i.e. heroku create
. However, if you are working on an existing app and want to add git remotes to enable manual deploys, the following commands may be useful.
Note that on Heroku, you must always use master
as the destination branch on the remote. If you want to deploy a different branch, you can use the syntax local_branch:destination_branch
seen below (in this example, we push the local staging
branch to the master
branch on heroku.
$ git remote add staging https://git.heroku.com/staging-app.git
$ ffmpeg -i hello-name-user-data.mov -s 600x400 -pix_fmt rgb24 -r 20 -f gif - | gifsicle --optimize=3 --delay=3 > out.gif | |
$ ffmpeg -i hello-name-user-data.mov -pix_fmt rgb24 -r 10 out3.gif |
$ brew install highlight | |
$ highlight -w | |
$ highlight -s anotherdark -O rtf src/HelloWorld.js | pbcopy |
/* eslint-disable import/no-extraneous-dependencies */ | |
import { shallow, mount } from ‘enzyme’; | |
/* eslint-enable import/no-extraneous-dependencies */ |
module.exports = { | |
“extends”: “../src/.eslintrc.js”, | |
“rules”: { | |
“import/no-extraneous-dependencies”: “error” | |
} | |
}; |
replaceText = function(string, oldText, newText) { | |
index = string.indexOf(oldText); | |
front = string.substring(0, index); | |
back = string.substring(index + oldText.length); | |
return front + newText + back; | |
}; | |
replaceTextGlobal = function(string, oldText, newText) { | |
while(string.indexOf(oldText) >= 0) { | |
string = replaceText(string, oldText, newText); |