Git Product home page Git Product logo

Comments (4)

dvdzkwsk avatar dvdzkwsk commented on April 26, 2024

If you want server-side rendering, you'll need to tell Heroku to run npm run server:start (or probably install forever and use that to run the script). Check https://devcenter.heroku.com/articles/getting-started-with-nodejs#define-a-procfile for more on this.

If you aren't using the server and have no interest in server-side rendering, you should just be able to host the ~/dist/client folder since that contains the base index.html file as well as the compiled assets. I haven't used Heroku in a very long time so I'm not quite sure whether or not this is possible with that platform. If you want a purely static site, you may want to try something like https://pages.github.com/ in which case you'd need to either fork it for deployment (so that you can deploy the assets to the project root) or create a gh-pages branch.

Note: One thing that you will need if it's hosted as a static page is some sort of server configuration to forward all routes to your index page, or just switch to using HashHistory instead of BrowserHistory.

Hope that helps.

from react-redux-starter-kit.

tonyalaribe avatar tonyalaribe commented on April 26, 2024

Thanks @davezuko. I kept running 'node index.js'.

from react-redux-starter-kit.

OKNoah avatar OKNoah commented on April 26, 2024

@tonyalaribe What did you end up doing here?

from react-redux-starter-kit.

OKNoah avatar OKNoah commented on April 26, 2024

@davezuko If I'm not mistaken, npm run server:start has been removed from the package.json. Is there a new recommended way of deploying and running on Heroku?

from react-redux-starter-kit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.