Giter Site home page Giter Site logo

Comments (5)

 avatar commented on May 20, 2024

Hi @junaid33 ,

where you able to run Reaction Commerce on CapRover? I tried to run it based on the docker image you provided. It seems like the app is running fine, but when I try to access the apps URL, I always get an NGINX Error 502.

Can you maybe share a repo or captain-definition that you have used to get it running?

from one-click-apps.

githubsaturn avatar githubsaturn commented on May 20, 2024

Go to apps settings, under htttp tab, scroll down to the bottom, change container HTTP port to 3000.

from one-click-apps.

 avatar commented on May 20, 2024

Hi thanks!

Can I also ask you how you deployed it?

from one-click-apps.

githubsaturn avatar githubsaturn commented on May 20, 2024
  • Create a mongodb app using one-click app, call it mydatabase.

  • Create a regular app, call it reaction

  • Go to the App Config tab, and click on BULK EDIT under environmental variables, copy and paste this:

ROOT_URL=http://localhost
[email protected]
REACTION_AUTH=mystrongpass
REACTION_USER=myusername
MONGO_URL=mongodb://root:mYMonGoDbPasSwOrd@srv-captain--mydatabase

Note that if you have a non alpha numeric password for MongoDB, you have to adjust your URL (URL encoding)

  • Go to the deploy tab and copy and paste this FROM reactioncommerce/reaction:latest under deployment method 4: Deploy plain Dockerfile
  • Deploy Dockerfile
  • Wait for build to be finished.
  • One last bit is that Reaction uses a very large header which breaks default nginx header buffer size, so you have to go and EDIT NGINX CONFIG under http settings tab and find this block:
            proxy_pass $upstream;
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto $scheme;

and add 3 lines, right below the previous chunk

            proxy_pass $upstream;
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto $scheme;
            # NEW LINES:
            proxy_buffer_size          128k;
            proxy_buffers              4 256k;
            proxy_busy_buffers_size    256k;

finally set the HTTP container port to 3000, and done!

from one-click-apps.

 avatar commented on May 20, 2024

Hi there,

Ìm very sorry to open this discussion again, but unfortunately it’s still not working. However we are able to load the login page. As far as my understanding goes, reaction is using websockets. I turned it on and even enabled https, but the admin panel is still not loading after login. The console tells me that the websocket connection was unsuccessful, so I believe there’s is some extra configuration necessary?

Thanks heaps for your help!

from one-click-apps.

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.