Code Monkey home page Code Monkey logo

Comments (4)

paulfitz avatar paulfitz commented on July 22, 2024

Thanks for the heads-up @encima. Just so I understand, do you have trouble if you visit http://localhost:8484 after running this:

docker pull gristlabs/grist
docker run -p 8484:8484 -it gristlabs/grist

If you know the IP address that grist will ultimately be served on, you can set some environment variables to let it know. Would this work for you?:

export IP=192.168.1.153
docker run -p 8484:8484 \
       --env GRIST_SINGLE_PORT=true \
       --env GRIST_HOST=0.0.0.0 \
       --env GRIST_SINGLE_ORG=docs \
       --env GRIST_DOMAIN=$IP \
       --env APP_HOME_URL=http://$IP:8484 \
       --env APP_DOC_URL=http://$IP:8484 \
       -it gristlabs/grist

I agree it'd be better if this worked straight out of the box, without the api logic confounding things. We also also documentation of environment variables we should make public...

from grist-core.

encima avatar encima commented on July 22, 2024

I did find the environment variables so that part was ok. but just running with local host causes an issue because connection string tries api.localhost and fails.

also, when I set the IP under APP_HOME etc then the api will then try api.168.1.2 instead of api.$IP. Both would fail but I guess the regex is just splitting at the first "."?

from grist-core.

paulfitz avatar paulfitz commented on July 22, 2024

Would it be possible to describe exactly how you are running Grist? Then I could help suggest environment variable changes that might help you. Variables that may be relevant include GRIST_SINGLE_PORT, GRIST_SINGLE_ORG, and GRIST_ORG_IN_PATH. Accesses to api.* should be fixable with a configuration matching the situation (running a single server handling all responsibilities, and perhaps for a single hard-coded organization).

from grist-core.

encima avatar encima commented on July 22, 2024

Sorry for the delay here! I did switch to paying for an account with your hosted version but would still like a mirrored, self hosted version.

Currently, I am deploying all in a single container with a Lets Encrypt proxy pointing to the grist domain

I tested running on my local machine and all works fine so I assume it is something with the proxy (or Caprovers port mapping); I will close now and update if I do succeed in running it this way.

from grist-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.