GithubHelp home page GithubHelp logo

Comments (9)

rberrelleza avatar rberrelleza commented on May 3, 2024 1

@reichert621 that was the issue. setting $PORT was overriding both the backend and the frontend's port at the same time. I forgot that that react's webserver uses PORT.

from papercups.

reichert621 avatar reichert621 commented on May 3, 2024

hey @rberrelleza!

my ~guess is that the PORT env variable is used in both our frontend app (as our webpack dev server or whatever is used under the hood in create-react-app) as well as our server (with the prod config), which is why you're getting the error that "something is already running"

though hmm... I'm a little confused why the frontend is trying to run with the prod config anyway 🤔

if you tell me a little bit more about what you're trying to do, I'd be happy to help out more :)

from papercups.

rberrelleza avatar rberrelleza commented on May 3, 2024

I'm trying to run papercups on as a container on our kubernetes cluster, and I want to expose it over port 8080.

With production, what I meant is that I'm trying to get the port using an env var, like you have in prod.secret.exs.

from papercups.

reichert621 avatar reichert621 commented on May 3, 2024

@rberrelleza my cofounder probably has more expertise around things like this 😅 we can probably hash this out more quickly over slack if you'd like to come by! https://join.slack.com/t/papercups-io/shared_invite/zt-gfs0d269-dEHm3SYs_5KmFKQ9YhBzDw

from papercups.

rberrelleza avatar rberrelleza commented on May 3, 2024

Will do! Feel free to close the issue and I'll follow up there.

from papercups.

cheeseblubber avatar cheeseblubber commented on May 3, 2024

Just noticed Something is already running on port 8080. do you have something runnning on the container? If we tried to run it on another port like 7070 just as a test I wonder if it would work.

from papercups.

rberrelleza avatar rberrelleza commented on May 3, 2024

@cheeseblubber I tried, but got the same error. I think @reichert621 is right and the PORT env var is being used for both front and backend.

from papercups.

reichert621 avatar reichert621 commented on May 3, 2024

if you changed this line https://github.com/papercups-io/papercups/blob/master/config/dev.exs#L19 to use the environment variable, then yes -- it'll use the same port for both :/

definitely something we can fix! just want to make sure this is the issue you're facing :)

(note that if you manually change that value above, you'll likely have to update this one too: https://github.com/papercups-io/papercups/blob/master/assets/package.json#L67)

from papercups.

reichert621 avatar reichert621 commented on May 3, 2024

I forgot about that too 😅 thanks for flagging!

from papercups.

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.