Closed Shoananas closed 7 years ago
You'd need to escape the "
character in heroku config:set
commands like this:
heroku config:set POLOLENDER_APIKEY={\"key\":\"MY-KEY\",\"secret\":\"MY-SECRET-KEY\"}
(I have update the README file as well)
Let me know if it works
I still have the error:
heroku/web.1: Starting process with command `node server.js`
app/web.1: notice: Environment file doesn't exist: /app/.env
app/web.1: alert: Environment variable POLOLENDER_APIKEY is invalid. Please see documentation at https://github.com/dutu/poloLender/
app/web.1: alert: Application will now exit. Correct the environment variable POLOLENDER_APIKEY and start the application again
heroku/web.1: State changed from starting to crashed
heroku/web.1: Process exited with status 1
Please don't forget to remove the '
character.
can you please let me know the heroku config:set
command you are using and also pls run heroku config
to display the config vars after you have done set
Yes, the issue was the '
character that I had to remove. I don't know if the escaping also helped but I kept it. I'll update other vars without the '
too.
Thank you :)
Hello,
Getting the following error in the logs using Heroku to run the app:
I used the following format to enter the API Key:
heroku config:set POLOLENDER_APIKEY='{"key":"MY-KEY","secret":"MY-SECRET-KEY"}'
I double checked the key with my polo account and I am 100% positive I am using the right one.
I didn't do the "poloLender Pro configuration" from your readme because it looks like it is for local setup (or maybe I'm wrong but since I already defined the config vars on Heroku I don't think I should do it again). It is my first time running your app.
Thank you for your help