question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I 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:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
jaredpalmercommented, May 25, 2017

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/3

Can confirm that this works… https://razzle-redux-starter.herokuapp.com/

0reactions
ThekhoNcommented, May 26, 2017

Thanks so much for taking the time to make this work 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found