Code Monkey home page Code Monkey logo

Comments (5)

giongto35 avatar giongto35 commented on August 16, 2024

I thought about that but I cannot find a clear use-case for it. And currently im the one maintaining the deployment, so I can update the config manually just by redeploying.
How should I run the project with an external config? I don't think external config file should be shared publicly also. :/ Any good suggestion?

from cloud-game.

sergystepanov avatar sergystepanov commented on August 16, 2024

@giongto35, I was thinking to add some kind of json config file for workers to be able to override a default libretro configuration, because right now it is a little bit annoying when you have to change hardcoded Linux core lib paths in config.go files and then recompile the whole app, also it is easy to mess up that way and push your config into the repository.
What I think, maybe, it would be better to define the main configuration object with some default values and if you need to change them then allow to override it by running overworker with a cmd param -c /path/to/my.config.json pointing to a file with your desirable value overrides and keep your config in secret if you will.

from cloud-game.

giongto35 avatar giongto35 commented on August 16, 2024

It is a valid concern. As we discuss in #105, we can see the need for external config.
If your usecase is watching from a local file and update, it can work. However, how to make it is publicly contributed, and update all servers according to that, then it's a problem. I prefer doing the proper way, to solve both use cases. One of my thinking is to have a config repo, and any change will update the config file in all servers.

https://github.com/breser/git2consul

It's quite tedious and I think i cannot prioritize it now. I think the service is not so big, so build is not so slow. Do you run using go run cmd/overlord/main.go and go run cmd/overworker/main.go ?

from cloud-game.

sergystepanov avatar sergystepanov commented on August 16, 2024

You are right, it's not that important, I will add all that I want in my fork. Feel free to close this issue in case you don't need it.

Do you run using go run cmd/overlord/main.go and go run cmd/overworker/main.go ?

Nope, make build & make run each time (: Will try as you said. (I've been working with Go just for a couple weeks and not yet familiar with its toolchain and syntax)

from cloud-game.

giongto35 avatar giongto35 commented on August 16, 2024

yes, with go run cmd/overlord/main.go and go run cmd/overworker/main.go. It will be more comfortable.
And for updating emulator related stuff, rerun cmd/over/overworker/main.go is enough :D

from cloud-game.

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.