Separate Rails and React Repos/deployments #1538
-
When using react_on_rails is there a way to separate the React code into a different repo and deploy the React code to nginx or even a simple s3 bucket? I'd still like to call |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
@brmstephenson Anything is possible. Why would this be worth the extra complexity? You'd only need to set the output path for the server-bundle.js to be in the regular spot. You can have a shell script to keep that synchronized. |
Beta Was this translation helpful? Give feedback.
-
Your question isn't really relevant to ReactOnRails. It's more of a Shakapacker concern & should be able to be resolved with the SHAKAPACKER_ASSET_HOST environment variable. |
Beta Was this translation helpful? Give feedback.
Your question isn't really relevant to ReactOnRails.
It's more of a Shakapacker concern & should be able to be resolved with the SHAKAPACKER_ASSET_HOST environment variable.