Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run the app after unplugging the React frontend #150

Closed
remy727 opened this issue Oct 22, 2024 · 4 comments
Closed

Can't run the app after unplugging the React frontend #150

remy727 opened this issue Oct 22, 2024 · 4 comments

Comments

@remy727
Copy link

remy727 commented Oct 22, 2024

I unplugging the React frontend by following the steps in Wiki page.

But I can't preview the app. I ran the app using Ngrok tunnel but I always have ERR_NGROK_8012 error. I tried different ports and checked firewall but the same error. I tried original ruby template but it worked well.
You can reproduce the issue on shopify-app-template-ruby-demo

Image

@cesarho
Copy link

cesarho commented Oct 26, 2024

@remy727

By changing the roles in shopify.web.toml from "backend" to "frontend", the CLI could pick the correct port in bring up the dev server.

roles = ["frontend"]

[commands]
dev = "bin/rails server"

Here is the reference: https://shopify.dev/docs/apps/build/cli-for-apps/migrate-to-latest-cli#node-js-or-rails

@remy727
Copy link
Author

remy727 commented Oct 27, 2024

It works. Thank you, @cesarho 👍

@remy727
Copy link
Author

remy727 commented Oct 27, 2024

@lizkenyon, can we include this change in Wiki page?

# shopify.web.toml

roles = ["frontend"]

[commands]
dev = "bin/rails server"

@matteodepalo
Copy link

Thank you @remy727, I've updated the wiki.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants