Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

zsh: parse error near `\n' when Adding AWS keys as environment variables

I have a Rails app that I am hosting on Heroku, and hosting images on a Amazon S3. I am trying to add my Amazon credentials to my app using:

heroku config:add aws_access_key:<your access key> aws_secret_key:<your secret key>

I keep getting the error:

zsh: parse error near `\n'

I have no idea what the problem is.

like image 506
Steve_D Avatar asked Mar 09 '14 05:03

Steve_D


2 Answers

I have the same error, and resolved it . because I type like this

$ heroku config:set AWS_SECRET_KEY=<A2D3F4H5A6D7HJ8KHF9>

then got the error. change like That:

$ heroku config:set AWS_SECRET_KEY=A2D3F4H5A6D7HJ8KHF9

success

like image 172
chengxcv5 Avatar answered Sep 28 '22 03:09

chengxcv5


I was facing the same error while trying to do a commit in GitHub. Turns out, <> are reserved, so of course I could NOT name anything within them. Posting this for SEO purposes for whoever faces the same issue in GitHub.

like image 28
LithyaBlake Avatar answered Sep 28 '22 05:09

LithyaBlake