Comments (9)
@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.
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.
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.
@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.
Will do! Feel free to close the issue and I'll follow up there.
from papercups.
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.
@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.
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.
I forgot about that too 😅 thanks for flagging!
from papercups.
Related Issues (20)
- Dev question HOT 1
- SMTP adapter is broken in Docker image
- Pull Request Preview Environments for increasing maintainer productivity
- Integrate pull request preview environments
- Deploy to Heroku button HOT 2
- Heroku one click deploy failed
- Upload fails from chat widget. HOT 7
- Ability to close live chat sessions from Mattermost
- BUG : In chat window the sending button dose not have an outline.
- Is this repo still maintained?
- Introducing new one-click deployment option (Elestio)
- Disable file upload
- It's possible to change the referrer meta field manually?
- Mark as unread HOT 1
- Reply from Slack integration doesn't forward incoming message to the Slack channel HOT 2
- Slack Interactivity Request URL for buttons to work
- Customer API endpoint doesn't update metadata HOT 11
- More Detailed Instructions for Deploying to AWS
- webhook via ngrok not challenged - local setup
- Incomplete docs, missing a few keys to getting storytime to work. (listed them here)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from papercups.