Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running on OpenShift/Heroku? #550

Closed
bgiesing opened this issue Jan 7, 2016 · 6 comments
Closed

Running on OpenShift/Heroku? #550

bgiesing opened this issue Jan 7, 2016 · 6 comments

Comments

@bgiesing
Copy link

bgiesing commented Jan 7, 2016

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
Copy link
Owner

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
Copy link
Author

bgiesing commented Jan 7, 2016

@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
Copy link
Contributor

lolcow commented Jan 7, 2016

@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
Copy link
Author

bgiesing commented Jan 7, 2016

@lolcow I will check it out.

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

@lolcow
Copy link
Contributor

lolcow commented Jan 7, 2016

@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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants