Shopify / shopify_app

A Rails Engine for building Shopify Apps
MIT License
1.74k stars 683 forks source link

shopify_app conflict with my rails server port #1855

Closed HappyJoe21 closed 2 weeks ago

HappyJoe21 commented 1 month ago

Hi friends here, I tried to get shopify app with a custom domain on Cloudflare:

Setup: I have Cloudflare to point a custom domain to localhost:6666, so I can just use the domain to access my local dev web application that runs on port 6666. It works for normal rails app.

The problem: cmd shopify app dev --tunnel-url=https://custom.domain:6666, it throws an error stating that port 6666 is already in use.

My procfile looks like below

web: bin/rails server -p 6666
js: yarn build --watch

What confused me is that, shopify app is the one uses the Procfile to start rails on port 6666,

Could someone explain what I might be doing wrong?

sle-c commented 3 weeks ago

Hi @HappyJoe21,

This is an issue with the CLI where it tries to run a proxy server on that port when you pass in the tunnel url with a port. Would you mind trying the solution in this issue thread?

Thank you

github-actions[bot] commented 2 weeks ago

We are closing this issue because we did not hear back regarding additional details we needed to resolve this issue. If the issue persists and you are able to provide the missing clarification we need, feel free to respond and reopen this issue.

We appreciate your understanding as we try to manage our number of open issues.