Skip to content
Thomas Y edited this page Nov 28, 2018 · 5 revisions

Welcome to the RealSelf git-gateway wiki!

Running git-gateway locally

The general instructions of running git-gateway can be found in README.md file of the repo.

There are a few RealSelf specifics.

After completing the general instructions, do the following

  1. stop the docker instance (<ctrl> + c)
  2. update PORT value in my.env to 8087
  3. update the Okta app redirect-url to point to https://localhost:8087/admin etc
  4. a more detail instructions of setting up a Okta sandbox can be found on JIRA: ORGANIC-468. If the ticket is done, you might able to skip the steps.
  5. my-netlify-cms in the general instructions maps to https://github.com/RealSelf/content-cms for us
  6. See https://github.com/RealSelf/content-cms/pull/5 for sign-in integration
  7. run git-gateway with this command instead: docker run --rm --env-file my.env --net localdev -p 127.0.0.1:8087:8087 --expose 8087 -ti --name netlify-git-gateway "netlify/git-gateway:latest"

Develop, Build and Run git-gateway

  1. Follow instructions Running git-gateway Locally above

  2. Run these commands once:

    docker build -t netlify/git-gateway:latest .
    docker run --rm --env-file my.env --net localdev -p 127.0.0.1:8087:8087 --expose 8087 -ti -v $PWD:/go/src/github.com/netlify/git-gateway --entrypoint '/bin/sh' --user root netlify/git-gateway:latest
    cd /go/src/github.com/netlify/git-gateway
    make deps
    
  3. Run these commands after edits:

    make build && ./git-gateway
    
  4. <ctrl> + c to stop