netlify / gotell

Netlify Comments is an API and build tool for handling large amounts of comments for JAMstack products

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API requires a site url

Adam-Collier opened this issue · comments

commented

A potential bug, currently getting this error when trying to deploy the API to Zeit" msg="Error verifying settings: API requires a site url"

I have tried setting the gotell environment variables in now.json, now secret command and .env file with no success. I've also tried adding it to CMD in the dockerfile but again the error persisted. I'm not sure whether this is a Zeit issue or there is a bug in the code

image

I am experiencing the same issue (running locally)

Dockerfile:

FROM calavera/go-glide:v0.12.2

ADD . /go/src/github.com/netlify/gotell

RUN useradd -m netlify && cd /go/src/github.com/netlify/gotell && make deps build && mv gotell /usr/local/bin/

ENV GOTELL_SITE_URL https://myapp.netlify.com
ENV GOTELL_REPOSITORY me/my_repo
ENV GOTELL_ACCESS_TOKEN 999

USER netlify
CMD ["gotell"]

Output:

> docker run gotell-thing:latest
time="2018-07-18T21:31:45Z" level=fatal msg="Error verifying settings: API requires a site url"