GithubHelp home page GithubHelp logo

Comments (3)

seriousbee avatar seriousbee commented on May 22, 2024 1

Hi there!

I was also experiencing a lot of issues with deployment, but what has worked for me is getting rid of this line:
https://github.com/shoumma/ReForum/blob/16117b77761d4044d99e784d82e187f079f56801/package.json#L37
Heroku dynamically assigns the port so hardcoding it here is not a great idea :)

Cheers!

from reforum.

marcmoo avatar marcmoo commented on May 22, 2024

still cannot figure out. any tricky small tips? really appreciate with it!

from reforum.

marcmoo avatar marcmoo commented on May 22, 2024

shoumma, i've figured it out finally. I had done following steps:
to solve the problem of above errors in terminal run $heroku config:set NODE_MODULES_CACHE=false then run git commit -am 'disable node_modules cache' --allow-empty
then run git push heroku master

and now it can be pused but still i got heroku logs showing i got R10, H10, H20(time out errors), following are what i do to solve it:

  1. Create a file name exactly Procfile (no .txt, no. js just a file name Procfile in root directory.
  2. put following codes in Procfile: node server.js
  3. in terminal run heroku ps:scale web=1 (or you can activate your dyno in the heroku management panel)
  4. git add . then git commit -m 'something here' then git push heroku master then i got my website hosted on heroku! yeah~~~~

from reforum.

Related Issues (13)

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.