summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorthea <ta.kupler@gmail.com>2016-09-15 15:29:10 +0200
committerthea <ta.kupler@gmail.com>2016-09-15 15:29:10 +0200
commit94a5b32a58f5f4fb63eaf677a91af63e1fe3e325 (patch)
tree738e0c0667fca70f03e0177a5f7bba0b27d38c23 /script
parent6a8afd2f69a13f62841a3fe909beaad96928fadb (diff)
included production for readme & secrets
Diffstat (limited to 'script')
-rwxr-xr-xscript/generate_bearer_token2
1 files changed, 2 insertions, 0 deletions
diff --git a/script/generate_bearer_token b/script/generate_bearer_token
index 7091a8d..60e4600 100755
--- a/script/generate_bearer_token
+++ b/script/generate_bearer_token
@@ -73,10 +73,12 @@ else
else
secrets["development"]["twitter"]["twitter_handle"] = options[:twitterhandle]
secrets["test"]["twitter"]["twitter_handle"] = options[:twitterhandle]
+ secrets["production"]["twitter"]["twitter_handle"] = options[:twitterhandle]
end
secrets["development"]["twitter"]["bearer_token"] = $bearer_token
secrets["test"]["twitter"]["bearer_token"] = $bearer_token
+ secrets["production"]["twitter"]["twitter_handle"] = $bearer_token
File.open("#{options[:projectroot]}/leap_web/config/secrets.yml", "r+") do |file|
file.write(secrets.to_yaml)