calzoneman / sync

Node.JS Server and JavaScript/HTML Client for synchronizing online media
Other
1.47k stars 234 forks source link

Running on OpenShift/Heroku? #550

Closed bgiesing closed 7 years ago

bgiesing commented 8 years ago

I have been trying for hours now to install on OpenShift Online. So far, I got everything installed but it can't start as OpenShift needs a modification for node ports.

Here's their blog article that explains the two simple changes. I just don't know how to implement it as I'm not a node person.

@calzoneman

calzoneman commented 8 years ago

Sorry, but I only support running this on bare hardware or in full root access virtual machines right now. Although those changes may look simple at first, I don't know how CyTube will interact with their sandboxed environment; it's certainly possible that there are more issues you will run into further down the line.

I am certainly willing to consider a pull request to make necessary changes, and user-contributed documentation for getting it to run in such an environment, but it's not something I intend to support officially at this time.

bgiesing commented 8 years ago

@calzoneman I would try it myself but I don't know which file I edit to change the ports to their vars.

It would be src/server.js right?

lolcow commented 8 years ago

@bgiesing Edit the IPs and ports in the listen, http, https (if applicable), and io blocks around https://github.com/calzoneman/sync/blob/3.0/src/config.js#L16 and leave them blank in config.yaml.

You'll need to specify a different port for the socket.io server, though. This may help: http://stackoverflow.com/questions/31518013/nodejs-websocket-server-ip-localhost-openshift

I would agree that you'd probably save a lot of time, money, and hassle if you just used a cheap Digital Ocean or Linode VPS, though.

bgiesing commented 8 years ago

@lolcow I will check it out.

(Also I would love Digital Ocean but I have $0 to my name... Sucks being poor.)

lolcow commented 8 years ago

@bgiesing I'd recommend using Amazon AWS EC2's micro instance free trial at https://aws.amazon.com/free/.

It's completely free for the year as long as you stay under the usage caps. You get root access to a virtual server just like you would with Digital Ocean.

Services like Heroku and its clones aren't very good for people who just want to play around with stuff. Honestly, I don't think they're good for anything at all, other than maybe saving a tiny bit of time, or making things easier for those who know how to program but don't want to learn how to use *nix.

calzoneman commented 7 years ago

Closing due to inactivity and no plans to work on this myself. Feel free to PR if someone else wants to pick it up.