All right so I am trying to run both React and Rails on the same service using different ports. The runtime is ruby, per a tech support suggestion. I am getting an un-numbered invariant violation on the front end, and nothing is being fetched from the back end at all so i suspect that Rails isn’s even running. I is callling the react controller when it should only ever be hitting the GraphQL controller.
==> Docs on specifying a Node version: Setting Your Node.js Version | Render Docs
==> Running ‘bundle exec puma -t 5:5 -p ${PORT:-5000} -e ${RACK_ENV:-production}’
Puma starting in single mode…
-
Version 3.12.6 (ruby 3.2.2-p53), codename: Llamas in Pajamas
-
Min threads: 5, max threads: 5
-
Environment: production
==> Detected service running on port 10000
Your service is live ![](
[3db7527c-9721-4bbe-b6d7-ed2682add240] Started GET “/static/js/main.2063b05d.chunk.js” for 172.69.135.117 at 2024-02-23 19:15:55 +0000
[3db7527c-9721-4bbe-b6d7-ed2682add240] Processing by ReactController#index as JS
[3db7527c-9721-4bbe-b6d7-ed2682add240] Parameters: {“path”=>“static/js/main.2063b05d.chunk”}
[3db7527c-9721-4bbe-b6d7-ed2682add240] Rendering public/index.html
[3db7527c-9721-4bbe-b6d7-ed2682add240] Rendered public/index.html (Duration: 0.1ms | Allocations: 11)
[3db7527c-9721-4bbe-b6d7-ed2682add240] Completed 200 OK in 7ms (Views: 1.2ms | Allocations: 964)
[5fb9bb81-37dc-44e6-beea-b5ae0181457f] Started GET “/static/js/main.9dbd92c6.chunk.js.map” for 172.69.134.181 at 2024-02-23 19:16:13 +0000
[5fb9bb81-37dc-44e6-beea-b5ae0181457f] Processing by ReactController#index as
[5fb9bb81-37dc-44e6-beea-b5ae0181457f] Parameters: {“path”=>“static/js/main.9dbd92c6.chunk.js”}
[5fb9bb81-37dc-44e6-beea-b5ae0181457f] Rendering public/index.html
[5fb9bb81-37dc-44e6-beea-b5ae0181457f] Rendered public/index.html (Duration: 0.1ms | Allocations: 4)
[5fb9bb81-37dc-44e6-beea-b5ae0181457f] Completed 200 OK in 1ms (Views: 0.5ms | Allocations: 219)
- Gracefully stopping, waiting for requests to finish
=== puma shutdown: 2024-02-23 19:16:40 +0000 ===
- Goodbye!
Here is my repo: GitHub - genxhero/swyle: A site for blogging and snarking using GraphQL, Apollo, React, and Rails 6.0