Node.js + express

stigit2's Avatar

stigit2

04 May, 2017 10:16 PM

Hi,

Call For Help (Totally not desperate) :
Does anyone has a example to run node and express on appharbor?? (code or maybe even a basic solution)
I would also like to try socket.io, anyone with experience here?

Unfortunately every google search i do keeps landing me on the https://blog.appharbor.com/2012/01/19/announcing-node-js-support blog post, from witch the node example code has been removed. Nor can i find any other info then posted there.

I have some projects already worked out in node and it would be really cool to take it to the next lvl and host it up there :)

Greetings,

Stigit2

  1. 1 Posted by stigit2 on 06 May, 2017 09:17 PM

    stigit2's Avatar

    After a long day of trying a lot of things, I got it working.

    I use this as webconfig (see below) WATCH OUT: logging is still enabled.
    Also i had to add "use strict"; in node app. As it gave me some errors using ECMAScript 6.

    I also got socket io running like it was supposed to.
    Also don't forget to activate "File system write access" in settings of appharbor.

    Also don't forget to push the packages as well And Don't forget to add security tags in web.config

    I hope this can help some people with this post.

  2. Support Staff 2 Posted by rune on 11 May, 2017 09:01 PM

    rune's Avatar

    Hi Stigit2,

    You're right, documentation is fairly limited for the node.js integration, but I'm glad you figured it out and shared your solution for others to benefit from!

    Best,
    Rune

  3. rune closed this discussion on 11 May, 2017 09:01 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac