summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorthea <ta.kupler@gmail.com>2016-11-10 15:41:09 +0100
committerthea <ta.kupler@gmail.com>2016-11-10 15:41:09 +0100
commit65846b33469278f0accbf7ea7f3d614f234b5b18 (patch)
treec5e6fe262fd43eb0d3c013e1d3d23eac8d0bb0f6 /script
parent5ac9cbfea145124f574238746c8badbd87cf71df (diff)
fixed bugs: production settings were incorrectly set (bearer token + twitter handle) and incorrect root was given for File.open (leap_web was still in it)
Diffstat (limited to 'script')
-rwxr-xr-xscript/generate_bearer_token4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/generate_bearer_token b/script/generate_bearer_token
index e6a22ea..7614f37 100755
--- a/script/generate_bearer_token
+++ b/script/generate_bearer_token
@@ -74,9 +74,9 @@ else
secrets["development"]["twitter"]["bearer_token"] = $bearer_token
secrets["test"]["twitter"]["bearer_token"] = $bearer_token
- secrets["production"]["twitter"]["twitter_handle"] = $bearer_token
+ secrets["production"]["twitter"]["bearer_token"] = $bearer_token
- File.open("#{options[:projectroot]}/leap_web/config/secrets.yml", "r+") do |file|
+ File.open("#{options[:projectroot]}/config/secrets.yml", "r+") do |file|
file.write(secrets.to_yaml)
end
end