Hi!
Faced with migrating app to 3.0 and I’m confused by the new terminology, some kind of mess of terms.
what is two-process apps ? where are these processes ? what processes do you mean ?
If i have embedded admin app with online theme blocks - how do I know which category it falls under ?
different between web process and frontend process ?
do i need to set the SERVER_PORT/BACKEND_PORT/PORT in shopify.web.toml and why?
Why didn’t this need to be done in the previous version?
what are these two ports, if the only one on the production was always needed?
how is it generally a port for the frontend and port for backend ?
npm run dev> Unable to obtain an available random port number!
I just installed a 3.x CLI app and had many of the same questions you had. I can’t claim to know this is correct but the way I viewed the two process is when you have two different servers serving code. If you had say one server serving the angular front end and another server handing the back-end logic (database, oauth etc).
Of course I studied migration guide, and two processes are mentioned there: front-end and back-end !
what it is?
what is front-end process and where does it living ?
did you figure this out? it seems like the .toml files are in weird places like the type=“backend” .toml file is in the /resources/js file and the type=“frontend” .toml file is in the root directory. It may be correct it just seems weird to me. When I run the npm run dev command I get an ERROR: INVALID HOOK CALL but I can remove all of the hook calls and all of the react components and the error is still there. So I assume the error is coming from somewhere else. Just thought I would see if you fixed your problems?
i couldn’t upgrade old “koa/next” project to latest cli 3.0 due “Unable to obtain an available random port number!” error and had to create new cli 3.0 project. Then file by file migrate to new technology (express/react-query) - in fact, everything has to be redone
I would like Shopify to finally develop a single final framework and develop it only and not rush through different technologies
yeah it is annoying. I started down that path of moving an old project over to a new cli 3.0 project. But I just kept cli 2.x and cli 3.x that way I can use both of them when I need to.
I am reading this topic and wish I find a solution, but unfortunately, it looks like this is the temporary/quick solution (create a new project based on 3.0 and move your code there).
cross-env BACKEND_PORT=5000 FRONTEND_PORT=8080 yarn shopify app dev
The only problem is, The Shopify CLI will not able to forward the request from Ngrok to your local port correctly. Hope this could be fixed in the future.