Code Monkey home page Code Monkey logo

Comments (19)

WaltDisneyWorld avatar WaltDisneyWorld commented on July 23, 2024 1

Ah. Thanks

from botrix.

dylanjamesdev avatar dylanjamesdev commented on July 23, 2024

Sure, I'd be happy to help!

Please answer these questions:

Describe the bug
A description of what the bug is.

How To Reproduce
Steps to reproduce the behavior:
1.
2.

Expected behavior
A description of what you expected to happen.

Environment (add if possible)

  • Node.js version:

Additional information & screenshots
Add any other context or screenshots about the problem here.

from botrix.

WaltDisneyWorld avatar WaltDisneyWorld commented on July 23, 2024

This is what I get when I try running the project:

2021-01-06T10:25:34.904173+00:00 app[web.1]:   code: 'EACCES',
2021-01-06T10:25:34.904174+00:00 app[web.1]:   errno: 'EACCES',
2021-01-06T10:25:34.904174+00:00 app[web.1]:   syscall: 'listen',
2021-01-06T10:25:34.904174+00:00 app[web.1]:   address: '0.0.0.0',
2021-01-06T10:25:34.904174+00:00 app[web.1]:   port: 80
2021-01-06T10:25:34.904174+00:00 app[web.1]: }````

from botrix.

dylanjamesdev avatar dylanjamesdev commented on July 23, 2024

from botrix.

WaltDisneyWorld avatar WaltDisneyWorld commented on July 23, 2024

Uh. .. It's heroku

from botrix.

dylanjamesdev avatar dylanjamesdev commented on July 23, 2024

Ah, heroku is different as they pick the ports you can use internally. I know you have to set it up differently config wise.

@WindowsCmd owo can you guide this lad?

from botrix.

WaltDisneyWorld avatar WaltDisneyWorld commented on July 23, 2024

I recieved the same error when I tried repl.it

from botrix.

dylanjamesdev avatar dylanjamesdev commented on July 23, 2024

Cloud hosting typically isn’t the best when it comes to nodejs projects in my experience. I know both repl.it and heroku they use port proxies to keep everything clean so pretty much 80 isn’t really 80 and so on. We used to run our own version on heroku (before me), so I’m sure windows can point you in the right direction! :p

Have you tried running it locally for testing purposes?

from botrix.

WindowsCmd avatar WindowsCmd commented on July 23, 2024

Heya, heroku does not use static ports. To get the port to use on heroku do process.env.PORT

from botrix.

WaltDisneyWorld avatar WaltDisneyWorld commented on July 23, 2024

Thanks!

from botrix.

WaltDisneyWorld avatar WaltDisneyWorld commented on July 23, 2024

Lemme fix it.

from botrix.

WaltDisneyWorld avatar WaltDisneyWorld commented on July 23, 2024

How would I find the port however?

from botrix.

WaltDisneyWorld avatar WaltDisneyWorld commented on July 23, 2024

I only see heroku run commands

from botrix.

WindowsCmd avatar WindowsCmd commented on July 23, 2024

In the file index.js replace app.listen(80) with app.listen(process.env.port)

from botrix.

WaltDisneyWorld avatar WaltDisneyWorld commented on July 23, 2024

Thanks.

from botrix.

WaltDisneyWorld avatar WaltDisneyWorld commented on July 23, 2024

IT's saying its online but web isn't showing up however.

from botrix.

WaltDisneyWorld avatar WaltDisneyWorld commented on July 23, 2024

One wierd question. Site is staying in maintenance mode. I think that's an error.

from botrix.

WaltDisneyWorld avatar WaltDisneyWorld commented on July 23, 2024

@WindowsCmd

from botrix.

WaltDisneyWorld avatar WaltDisneyWorld commented on July 23, 2024

Fixed it myself.

from botrix.

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.