Skip to content
This repository was archived by the owner on Feb 25, 2020. It is now read-only.

Commit 65846b3

Browse files
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)
1 parent 5ac9cbf commit 65846b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script/generate_bearer_token

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ else
7474

7575
secrets["development"]["twitter"]["bearer_token"] = $bearer_token
7676
secrets["test"]["twitter"]["bearer_token"] = $bearer_token
77-
secrets["production"]["twitter"]["twitter_handle"] = $bearer_token
77+
secrets["production"]["twitter"]["bearer_token"] = $bearer_token
7878

79-
File.open("#{options[:projectroot]}/leap_web/config/secrets.yml", "r+") do |file|
79+
File.open("#{options[:projectroot]}/config/secrets.yml", "r+") do |file|
8080
file.write(secrets.to_yaml)
8181
end
8282
end

0 commit comments

Comments
 (0)