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

Unnecessary coupling of configuration #3

Open
aripalo opened this issue Sep 29, 2014 · 0 comments
Open

Unnecessary coupling of configuration #3

aripalo opened this issue Sep 29, 2014 · 0 comments

Comments

@aripalo
Copy link

aripalo commented Sep 29, 2014

Problem

For puma app, one specifies the control app's IP-address, port and auth_token like so:

# file: config/puma.rb
activate_control_app 'tcp://<IP>:<PORT>', { auth_token: '<AUTH-TOKEN>' }

Unfortunately one has to repeat this information in Livefile config required by sinatra-live:

# file: Livefile
puma:
  control: http://<IP>:<PORT>
  token: <AUTH-TOKEN>

This is "no biggie" by any means

Solution (idea)?

The way I see it, is that sinatra-live should read the configuration programmatically from somewhere when running the sinatra-live command.

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

No branches or pull requests

1 participant