How to deploy?
See original GitHub issueI tried to deploy a simple counter app (based-off the redux example) with some actual API call to get and update the count.
https://github.com/ThekhoN/razzle-react-redux-starter
Correct me if i’m wrong, the only requirement for deployment is the /build folder after running
npm run build
?
When i try to do node server.js
, it keeps throwing module errors : “Cannot find module ‘react’” etc.
Can some one explain how to resolve this so that i can safely deploy the example?
Thanks.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How to Deploy a Website - Codecademy
Learn how to publish a personal website to the public Internet.
Read more >5 Fundamental Steps to Deploying a Website - WebFX
Learn fundamental steps and precautions you must take to ensure a smooth website deployment. Read through them and make sure your process is...
Read more >How to deploy code - Wikitech - Wikimedia
Step 1: get the code in the deployment branch · Step 2: get the code on the deployment host · Step 3: configuration...
Read more >How to Deploy Code to a Virtual Machine – Amazon Web ...
Step 1: Create a Key Pair · Step 2: Enter the CodeDeploy Console · Step 3: Launch a Virtual Machine · Step 4:...
Read more >What is deployment in software & web development? - Umbraco
Deployment in software and web development means pushing changes or updates from one deployment environment to another. When setting up a website you...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So the issue had to do with how Heroku forces you to use their
process.env.PORT
, which is only set after the heroku’s build completes. These are changes you should make for Heroku: https://github.com/ThekhoN/razzle-react-redux-starter/pull/3Can confirm that this works… https://razzle-redux-starter.herokuapp.com/
Thanks so much for taking the time to make this work 😃